wiki.techinc.nl/includes/editpage
Kosta Harlan 30287f6be6
Temporary accounts: Create user on edit save attempts
Why:

- Certain hooks and constraints that deny edits (SpamBlacklist,
  AbuseFilter) generate manual log entries; these logs need to
  reference an actor. The actor should be the same across multiple
  failed attempts to save an edit.
- In order to hide the IP address associated with the request,
  we can create a temporary account for every edit attempt, to
  ensure that we associate the request with the log entry.

What:

- Create the temporary account at the beginning of
  `EditPage::internalAttemptSave`. This is a change from the previous
  temporary account creation paradigm, which created an account for a
  successful edit attempt.
- Remove the pageUpdater->isChange check, as we don't have a pageUpdater
  object at time of temp account creation.
- Temporary accounts are also created for no-op changes (pressing
  "Publish" with unchanged wikitext editor contents)
- Note that temporary accounts are *not* created when permission related
  errors are present in the edit attempt (e.g. a user attempts to edit
  from a blocked IP address)

Bug: T359405
Change-Id: Ib6765f828681e70d798363338910a54c7de4ed67
2024-04-29 10:55:20 +02:00
..
Constraint Namespace Message, move to appropriate directory 2024-02-14 15:10:36 -05:00
EditPage.php Temporary accounts: Create user on edit save attempts 2024-04-29 10:55:20 +02:00
IEditObject.php Handle collisions from SerialProvider::acquireIndex 2023-12-21 14:49:42 +00:00
IntroMessageBuilder.php IntroMessageBuilder: inject connection provider 2024-02-14 17:22:02 +00:00
IntroMessageList.php Namespace Message, move to appropriate directory 2024-02-14 15:10:36 -05:00
ParametersHelper.php Namespace includes/context 2024-02-08 11:07:01 -05:00
PreloadedContentBuilder.php EditPage: Restore support for 'MediaWiki:addsection-editintro' 2023-09-13 13:24:36 +02:00
SpamChecker.php Various doc fixes about false on method arguments/return types 2022-11-10 19:23:46 +00:00
TemplatesOnThisPageFormatter.php Standardise all our class alias deprecation comments for ease of grepping 2024-03-19 20:11:29 +00:00
TextboxBuilder.php Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
TextConflictHelper.php editpage: track edit conflicts in edit failures stat 2024-02-28 16:48:09 +00:00