r84496 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84495‎ | r84496 | r84497 >
Date:22:07, 21 March 2011
Author:platonides
Status:ok
Tags:
Comment:
MFT r84459 + RELEASE NOTES
Modified paths:
  • /branches/REL1_17/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_17/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: branches/REL1_17/phase3/includes/Title.php
@@ -3087,7 +3087,8 @@
30883088 }
30893089 }
30903090
3091 - $pageid = $this->getArticleID();
 3091+ $dbw->begin(); # If $file was a LocalFile, its transaction would have closed our own.
 3092+ $pageid = $this->getArticleID( GAID_FOR_UPDATE );
30923093 $protected = $this->isProtected();
30933094 if ( $nt->exists() ) {
30943095 $err = $this->moveOverExistingRedirect( $nt, $reason, $createRedirect );
@@ -3098,6 +3099,8 @@
30993100 }
31003101
31013102 if ( is_array( $err ) ) {
 3103+ # FIXME: What about the File we have already moved?
 3104+ $dbw->rollback();
31023105 return $err;
31033106 }
31043107 $redirid = $this->getArticleID();
@@ -3158,6 +3161,8 @@
31593162 $u = new SearchUpdate( $redirid, $this->getPrefixedDBkey(), '' );
31603163 $u->doUpdate();
31613164
 3165+ $dbw->commit();
 3166+
31623167 # Update site_stats
31633168 if ( $this->isContentPage() && !$nt->isContentPage() ) {
31643169 # No longer a content page
Property changes on: branches/REL1_17/phase3/includes/Title.php
___________________________________________________________________
Modified: svn:mergeinfo
31653170 Merged /trunk/phase3/includes/Title.php:r84459
Index: branches/REL1_17/phase3/RELEASE-NOTES
@@ -500,6 +500,8 @@
501501 * Fix XML well-formedness on a few pages when $wgHtml5 is true (the default)
502502 * (bug 28069) MediaWiki fails streaming files when mod_deflate and ob_gzhandler
503503 are also set.
 504+* (bug 26223) Concurrently moving an article to different titles leaks a
 505+ redirect revision with no page.
504506
505507 === API changes in 1.17 ===
506508 * BREAKING CHANGE: action=patrol now requires POST
Property changes on: branches/REL1_17/phase3/RELEASE-NOTES
___________________________________________________________________
Modified: svn:mergeinfo
507509 Merged /trunk/phase3/RELEASE-NOTES:r84459

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84459(Bug 26223) Concurrently moving an article to different titles leaks a redire...platonides16:46, 21 March 2011

Status & tagging log