wiki.techinc.nl/tests/phpunit/integration/includes/user
Thalia 6909b2016e Always allow local IP actors to be created when importing
Why:

* Following T345578, the ActorStore throws an error on
  attempting to create an actor whose name is their IP address
  if temporary accounts are enabled.
* For the specific case of importing old revisions, we need to
  be able to create new actors whose name is their IP address,
  while still generally disallowing it.

What:

* Add $allowCreateIpActors flag to ActorStore, and check for
  it during actor name validation.
* Set the flag from ActorStoreFactory::getActorStore depending
  on whether temporary users are enabled.
* Add ActorStoreFactory::getActorStoreForImport, which sets
  flag to true.
* Add RevisionStoreFactory::getRevisionStoreForImport, which
  uses getActorStoreForImport. Use this from classes handling
  imports, so that IP actors can always be created.
* Add $forImport flag on ActorMigration, since RevisionStore
  uses an actor store obtained via ActorMigration.

Bug: T354207
Change-Id: I0715bd0d23089fd8156e579913e6e823089809be
2024-01-29 19:35:14 +00:00
..
Options tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
Registration Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
TempUser Add wfDeprecated call to RealTempUserConfig::getMatchPattern 2024-01-18 20:25:17 +00:00
ActorStoreTest.php Always allow local IP actors to be created when importing 2024-01-29 19:35:14 +00:00
ActorStoreTestBase.php Always allow local IP actors to be created when importing 2024-01-29 19:35:14 +00:00
UserFactoryTest.php tests: Use namespaced classes 2023-12-11 15:59:55 +01:00
UserSelectQueryBuilderTest.php Support multiple matchPatterns in temp user autocreate config 2024-01-17 11:24:26 +00:00