Background
This task is spun out from its sibling task: T324603: The CheckUser extension should provide IP addresses of temporary account users, for IP Masking
From the sibling task:
What needs to be done
We need CheckUser to be able to return, for users with a permission other than checkuser (name of new permission tbc):
- All IP addresses (up to a configurable limit), given a temporary account name (e.g. for T324602: SpecialBlock: Once a temporary account is selected, below the username field display IP addresses associated with the account)
- An IP address, given a temporary account name and a revision ID (for e.g. T326392: IP Address Reveal on History page)
- An IP address, given a temporary account name and a timestamp (e.g. for T326393: IP Address Reveal on Log page)
This task is specifically for:
- An IP address, given a temporary account name and a revision ID (for e.g. T326392: IP Address Reveal on History page)
The API will take a user name and a list of revision IDs, and return IP addresses for any of the revision IDs that are associated with that user
Testing notes
- To use this API, you'll need the checkuser-temporary-account right
- The URL is rest.php/checkuser/v0/temporaryaccount/{name}/revisions/{ids} (see RestRoutes in extension.json)
- {name} is the user name you want to look up
- {ids} is a list of 1 or more revision IDs associated with the user (e.g. as obtained from a history page list). The list can be formatted as documented in ParamValidator::PARAM_ISMULTI
- In case you have been switching $wgAutoCreateTempUser['enabled'] on and off locally, it needs to be true to avoid a nonexistent account error







