Background
Following T345578: Ensure that an IP address cannot be saved permanently if IP Masking is enabled, an error is thrown if attempting to create an IP actor, if temporary accounts are enabled.
However, we do want to allow IP actors to be created when importing revisions from other wikis that don't have temporary accounts enabled (or that didn't when the revisions were made). This is consistent with the fact that we won't be hiding IP addresses from revisions that were made before temporary accounts were enabled.
For more details on the decision to do this and the chosen approach, see T350155: [M] Investigate: Do we need to allow IP actor creation for imports?.
What needs doing?
- Allow an IP actor to be created when importing a revision (fixed)
- Allow an IP actor to be created when importing an upload (won'tfix for now - see comments)
Upload is less important for WMF production, since IP actors can't upload, but doing it would leave the MediaWiki code base in a consistent state.