Address
:
[go:
up one dir
,
main page
]
Include Form
Remove Scripts
Accept Cookies
Show Images
Show Referer
Rotate13
Base64
Strip Meta
Strip Title
Session Cookies
Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4326026
T128624-REL1_27.patch
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Bawolff
Aug 1 2016, 12:10 PM
2016-08-01 12:10:10 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
T128624-REL1_27.patch
View Options
From 685ec221b653a3383f5696e6af5319cf8528f6db Mon Sep 17 00:00:00 2001
From: Aaron Schulz <aschulz@wikimedia.org>
Date: Mon, 13 Jun 2016 02:20:49 -0700
Subject: [PATCH] Use the specified page ID for LinksDeletionUpdate
This makes LinksDeleteJob use the correct page ID when a new
page was later created at the title. The links and protection
rows to clear should always be for the ID of the actual page
being deleted.
This fixes a bug when pages are moved over redirects.
Bug: T128624
Change-Id: Id67a021539b97020e8dd32d56dba1b77c806f31c
---
includes/deferred/LinksDeletionUpdate.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/includes/deferred/LinksDeletionUpdate.php b/includes/deferred/LinksDeletionUpdate.php
index 1770639..6507049 100644
--- a/includes/deferred/LinksDeletionUpdate.php
+++ b/includes/deferred/LinksDeletionUpdate.php
@@ -37,10 +37,10 @@ class LinksDeletionUpdate extends SqlDataUpdate implements EnqueueableDataUpdate
parent::__construct( false ); // no implicit transaction
$this->page = $page;
- if ( $page->exists() ) {
+ if ( $pageId ) {
+ $this->pageId = $pageId; // page ID at time of deletion
+ } elseif ( $page->exists() ) {
$this->pageId = $page->getId();
- } elseif ( $pageId ) {
- $this->pageId = $pageId;
} else {
throw new MWException( "Page ID not known, perhaps the page doesn't exist?" );
}
--
1.9.5 (Apple Git-50.3)
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3896733
Default Alt Text
T128624-REL1_27.patch (1 KB)
Attached To
Mode
T133070: MediaWiki 1.27.1 security release
Attached
Detach File
Event Timeline
Log In to Comment