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 |
||
|---|---|---|
| .. | ||
| Constraint | ||
| EditPage.php | ||
| IEditObject.php | ||
| IntroMessageBuilder.php | ||
| IntroMessageList.php | ||
| ParametersHelper.php | ||
| PreloadedContentBuilder.php | ||
| SpamChecker.php | ||
| TemplatesOnThisPageFormatter.php | ||
| TextboxBuilder.php | ||
| TextConflictHelper.php | ||