Reedy has uploaded a new change for review. Change subject: (bug 41990) Fix regression in API edit of redirect ......................................................................
(bug 41990) Fix regression in API edit of redirect Before ContentHandler, an API edit passing a redirect for title and redirect=true and omitting basetimestamp would use the last revision timestamp of the target page. When ContentHandler was merged, this was accidentally changed to use the last revision timestamp of the redirect page, which was likely much earlier than the target page's last revision and so causes an edit conflict in almost all cases. Some scripts took advantage of this along with appendtext to add notices to users' talk pages, so restore that old behavior. We'll also adjust the contentmodel/contentformat detection added by ContentHandler to use the model and format of the target page rather than the redirect in this case, as that seems more likely to be less wrong. Change-Id: If0c674e26a4deb54ec14f0bf45418d666a397347 --- M RELEASE-NOTES-1.21 M includes/api/ApiEditPage.php 2 files changed, 27 insertions(+), 22 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/82/33082/1 -- To view, visit https://gerrit.wikimedia.org/r/33082 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If0c674e26a4deb54ec14f0bf45418d666a397347 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.21wmf3 Gerrit-Owner: Reedy <re...@wikimedia.org> Gerrit-Reviewer: Anomie <bjor...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits