Bugs item #2785594, was opened at 2009-05-02 08:21 Message generated for change (Comment added) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: liangent (liangent) Assigned to: Russell Blau (russblau) Summary: Page.backlinks cannot work well on some pages
Initial Comment: on zhwiki, tuple(Page(Link(u'Wikipedia:沙盒')).backlinks()) NOTE: 沙盒 means sandbox in chinese raises exception: RuntimeError: getredirtarget: 'redirects' contains no key for page WP:SB. NOTE: WP:SB is a redirect to Wikipedia:沙盒, and WP is a namespace alias of Wikipedia no matter what value i use for filterRedirects parameter i cannot find what's the problem...
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-05-05 13:13
Message: Fixed in r6830: this bug was caused by the fact that zhwiki (and probably many others) contains pages in its database whose titles are like [[WP:SB]]; the database thinks these are in namespace 0, but after they were created the WP: prefix was changed into an alias for namespace 4. This causes the API to treat [[WP:SB]] and [[Wikipedia:SB]] as two different pages, even though the first one is no longer accessible through the UI.
----------------------------------------------------------------------
Comment By: liangent (liangent) Date: 2009-05-02 11:11
Message: i found something abnormal currently, WP: is an alias of Wikipedia:, however, in api query, <bl pageid="100223" ns="0" title="WP:SB" redirect="" /> is returned. see http://zh.wikipedia.org/w/api.php?action=query&list=backlinks&bltitl... this caused the problem i reported it here, https://bugzilla.wikimedia.org/show_bug.cgi?id=17701 , but should pywikibot handle this abnormal situation?
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594...
pywikipedia-bugs@lists.wikimedia.org