mediawiki-extensions-AbuseF.../includes
Dreamy Jazz f3c87749b8 Send AbuseFilter logs to CheckUser on PRESEND
Why:
* AbuseFilter can send AbuseFilter logs to CheckUser if they are
  not being sent to Special:RecentChanges.
* However, if this action is indirectly causing the creation of
  an account (such as through temporary account auto-creation),
  the log entry is sent to CheckUser before the temporary account
  actually exists in the 'user' table.
* This causes a CannotCreateActorException, as the performer does
  not exist on the wiki just yet and therefore cannot have an
  actor ID until the temporary account is created.
* This exception can happen if the AbuseFilter filter only creates
  a log entry and does not prevent the edit, so would not be
  necessarily fixed by T334623.
* Sending the logs to CheckUser on PRESEND avoids this, as the
  user will exist by the time that PRESEND is run but still allows
  any failures to cause an exception which can be seen by the user.

What:
* Wrap the call to Hooks::updateCheckUserData in AbuseLogger
  ::insertLocalLogEntries in a DeferredUpdate which is set to run
  on PRESEND.

Bug: T358632
Change-Id: Ia615fce3e26b88d5457ecc01231044b326b79973
2024-02-28 13:09:22 +00:00
..
Api Use namespaced classes 2023-12-10 23:03:12 +01:00
ChangeTags Use namespaced classes 2023-12-10 23:03:12 +01:00
Consequences Use namespaced classes 2023-12-10 23:03:12 +01:00
EditBox Use namespaced classes 2023-12-10 23:03:12 +01:00
Filter Replace BadMethodCallException with LogicException 2023-11-16 19:10:50 +00:00
Hooks Remove $wgAbuseFilterBlockedExternalDomainsNotification and related code 2024-02-20 23:01:02 +00:00
LogFormatter Use namespaced classes 2023-12-10 23:03:12 +01:00
Pager Fix "PHP Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated" 2023-12-15 23:01:09 +00:00
Parser Use namespaced classes 2023-12-10 23:03:12 +01:00
Special Blocked domains: Add support for "added by" field 2023-12-27 04:37:42 +01:00
VariableGenerator Use namespaced classes 2023-12-10 23:03:12 +01:00
Variables build: Upgrade mediawiki/mediawiki-phan-config to 0.13.0 2024-02-02 16:24:51 +00:00
View build: Upgrade mediawiki/mediawiki-phan-config from 0.13.0 to 0.14.0 manually 2024-02-08 18:05:12 -05:00
Watcher Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilter.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
AbuseFilterActorMigration.php Use namespaced MediaWiki\User\ActorMigrationBase 2023-08-20 01:08:09 +02:00
AbuseFilterChangesList.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterPermissionManager.php AbuseFilterPermissionManager: Add sitewide block check 2022-10-21 17:34:01 +00:00
AbuseFilterPreAuthenticationProvider.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterServices.php BlockedDomains: Move filtering logic to a dedicated class 2023-08-06 16:27:23 +02:00
AbuseLogger.php Send AbuseFilter logs to CheckUser on PRESEND 2024-02-28 13:09:22 +00:00
AbuseLoggerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
ActionSpecifier.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
BlockAutopromoteStore.php Use namespaced classes 2023-12-10 23:03:12 +01:00
BlockedDomainFilter.php Use namespaced classes 2023-12-10 23:03:12 +01:00
BlockedDomainStorage.php Remove indirect calls to IDBAccessObject::READ_* constants 2024-01-26 09:25:35 -05:00
CentralDBManager.php Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
CentralDBNotAvailableException.php
EchoNotifier.php Use namespaced Title 2023-08-19 19:49:36 +02:00
EditRevUpdater.php Replace deprecated database object access methods 2023-03-08 16:50:56 +01:00
EditStashCache.php
EmergencyCache.php
FilterCompare.php
FilterImporter.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterLookup.php Remove indirect calls to IDBAccessObject::READ_* constants 2024-01-26 09:25:35 -05:00
FilterProfiler.php Use namespaced Title 2023-08-19 19:49:36 +02:00
FilterRunner.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterRunnerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterStore.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterUser.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
FilterValidator.php Use namespaced classes 2023-12-10 23:03:12 +01:00
GlobalNameUtils.php
InvalidImportDataException.php
KeywordsManager.php Document more generated messages 2023-11-08 16:34:08 +00:00
RunnerData.php
ServiceWiring.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
SpecsFormatter.php Document more generated messages 2023-11-08 16:34:08 +00:00
TableDiffFormatterFullContext.php Use the new Wikimedia\Diff namespace 2023-06-29 11:56:13 +10:00
TextExtractor.php Remove bits of unused code across the codebase 2023-06-14 19:41:00 +00:00
ThrottleFilterPresentationModel.php