mediawiki-extensions-AbuseF.../includes
Dreamy Jazz 8e4a1237f1 Hook on privateEvent and logEvent insert hooks like CuChangesInsert
Hook on to CheckUserInsertPrivateEventRow and CheckUserInsertLogEventRow
to override the IP, XFF and User-Agent string when the user is the
abuse filter user for log events.

These two hooks are being added as log entries are being removed from
cu_changes and added into two new tables. Because the columns and their
names are different for these tables, reusing the same hook won't work
for callers that rely on setting values for a specific column name.

Edits and log entries performed by the abuse filter user need to be
marked as being by the software (and not using the IP, XFF and
User-Agent provided in the main request).

These hooks will not be run until the appropriate config is set to
write to the two new tables. Until that point using the one currently
defined hook will work for all actions.

Bug: T324907
Bug: T44345
Depends-On: I7c7754323ade9a8d96273c1742f30b1b5fbe5828
Follow-Up: Idd77545af94f9f9930d9ff38ab6423a72e680df9
Change-Id: Id78417e9d95220946f110afbe1430df5b3bb4f4f
2023-01-08 13:09:52 +00:00
..
Api maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
ChangeTags Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
Consequences Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
EditBox Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
Filter build: Updating dependencies 2021-07-21 18:51:18 +00:00
Hooks Hook on privateEvent and logEvent insert hooks like CuChangesInsert 2023-01-08 13:09:52 +00:00
LogFormatter Fix capitalization of method calls accross the codebase 2022-04-26 17:42:34 +02:00
Pager pager: Avoid unneeded database connection 2022-12-11 13:06:08 +01:00
Parser Explicitly cast mod (%) operhands to ints. 2022-10-03 08:30:45 -07:00
Special Register AbuseFilter menu as standard tabs 2022-11-17 16:35:34 +00:00
VariableGenerator Merge "Replace VariableHolder::$forFilter" 2023-01-05 21:23:24 +00:00
Variables Merge "Replace VariableHolder::$forFilter" 2023-01-05 21:23:24 +00:00
View Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
Watcher build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilter.php Remove deprecated static methods 2022-07-27 13:01:10 +02:00
AbuseFilterChangesList.php Replace deprecated Linker::commentBlock 2022-12-10 22:32:53 +01:00
AbuseFilterPermissionManager.php AbuseFilterPermissionManager: Add sitewide block check 2022-10-21 17:34:01 +00:00
AbuseFilterPreAuthenticationProvider.php Inject dependencies into the authentication provider 2022-04-09 18:44:25 +02:00
AbuseFilterServices.php Rename ParserFactory -> RuleCheckerFactory 2021-09-08 21:59:34 +02:00
AbuseLogger.php Send CheckUser the IP address on account creation 2022-08-01 09:17:35 +02:00
AbuseLoggerFactory.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ActionSpecifier.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
BlockAutopromoteStore.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
CentralDBManager.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
CentralDBNotAvailableException.php Add a service to retrieve the central DB 2020-10-31 12:32:46 +00:00
EchoNotifier.php EchoNotifierTest: Use namespaced Event class 2022-11-12 06:28:33 +00:00
EditRevUpdater.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
EditStashCache.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
EmergencyCache.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterCompare.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterImporter.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterLookup.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterProfiler.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterRunner.php Merge "Replace VariableHolder::$forFilter" 2023-01-05 21:23:24 +00:00
FilterRunnerFactory.php Rename ParserFactory -> RuleCheckerFactory 2021-09-08 21:59:34 +02:00
FilterStore.php Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
FilterUser.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
FilterValidator.php Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
GlobalNameUtils.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
InvalidImportDataException.php Adjust code coverage 2020-11-19 22:40:26 +00:00
KeywordsManager.php Merge "Add support for regex string replacements." 2022-05-31 14:54:33 +00:00
RunnerData.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
ServiceWiring.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
SpecsFormatter.php Improve wording for throttled filter warnings 2022-02-22 11:10:19 +00:00
TableDiffFormatterFullContext.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
TextExtractor.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
ThrottleFilterPresentationModel.php Improve wording for throttled filter warnings 2022-02-22 11:10:19 +00:00