https://bugzilla.wikimedia.org/show_bug.cgi?id=55301
Web browser: --- Bug ID: 55301 Summary: redirect pages not properly followed. Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: interwiki.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/964/ Reported by: purodha Created on: 2009-06-22 18:23:09 Subject: redirect pages not properly followed. Original description: A disambiguation page interwiki links to a redirect page which redirects to a diambiguation page. The link is incorrectly not followed.
Note: [[de:A61]] is a redirect to [[de:A 61]] which is a disambiguation.
Here is the output (relevant lines only):
python interwiki.py -v -initialredirect -autonomous -recentchanges:300 Pywikipediabot (r6978 (wikipedia.py), Jun 21 2009, 13:58:28) Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) NOTE: Number of pages queued is 0, trying to add 60 more. Getting 60 pages from wikipedia:ksh... ... NOTE: Ignoring link from disambiguation page [[ksh:A 61 (Watt eßß datt?)]] to non-disambiguation [[de:A61]] NOTE: ignoring [[de:A61]] and its interwiki links .... ======Post-processing [[ksh:A 61 (Watt eßß datt?)]]====== Updating links on page [[ksh:A 61 (Watt eßß datt?)]]. WARNING: [[de:A61]] is either deleted or has a mismatching disambiguation state. No changes needed WARNING: wikipedia: [[ksh:A 61 (Watt eßß datt?)]] links to incorrect [[de:A61]]
The redirect should have been followed.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55301
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Starting off a redirect on the source side did the job. See below. So likely, the problem is that, the disambig status of the source page was not properly stored in the above case, but now was.
Full output:
python interwiki.py -v -initialredirect -autonomous A61 DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder! File "/home/purodha/pywikipedia/interwiki.py", line 1946, in <module> for arg in wikipedia.handleArgs(): File "/home/purodha/pywikipedia/wikipedia.py", line 6503, in handleArgs output('Pywikipediabot %s' % (version.getversion())) File "/home/purodha/pywikipedia/wikipedia.py", line 6836, in output print traceback.print_stack() None DBG> Attempting to recover, but please report this problem Pywikipediabot (r6978 (wikipedia.py), Jun 21 2009, 13:58:28) DBG> BUG: Non-unicode (<type 'str'>) passed to wikipedia.output without decoder! File "/home/purodha/pywikipedia/interwiki.py", line 1946, in <module> for arg in wikipedia.handleArgs(): File "/home/purodha/pywikipedia/wikipedia.py", line 6504, in handleArgs output('Python %s' % (sys.version)) File "/home/purodha/pywikipedia/wikipedia.py", line 6836, in output print traceback.print_stack() None DBG> Attempting to recover, but please report this problem Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) [GCC 4.3.2] Retrieving mediawiki messages from Special:Allmessages WARNING: No character set found. Getting 1 pages from wikipedia:ksh... NOTE: [[ksh:A61]] is redirect to [[ksh:A61 (Watt eßß datt?)]] Getting 1 pages from wikipedia:ksh... NOTE: [[ksh:A61 (Watt eßß datt?)]] is redirect to [[ksh:A 61]] Getting 1 pages from wikipedia:ksh... NOTE: [[ksh:A 61]] is redirect to [[ksh:A 61 (Watt eßß datt?)]] Getting 1 pages from wikipedia:ksh... [[A 61 (Watt eßß datt?)]]: [[ksh:A 61 (Watt eßß datt?)]] gives new interwiki [[de:A61]] Getting 1 pages from wikipedia:de... NOTE: [[de:A61]] is redirect to [[de:A 61]] [[A 61 (Watt eßß datt?)]]: [[de:A61]] gives new redirect [[de:A 61]] Getting 1 pages from wikipedia:de... ======Post-processing [[ksh:A 61 (Watt eßß datt?)]]====== Updating links on page [[de:A 61]]. Changes to be made: Ergänze: ksh + + [[ksh:A 61 (Watt eßß datt?)]]
NOTE: Updating live wiki... Getting information for site wikipedia:de Note: this language does not allow global bots. Changing page [[de:A 61]] Retrieving mediawiki messages from Special:Allmessages WARNING: No character set found. Updating links on page [[ksh:A 61 (Watt eßß datt?)]]. Changes to be made: ußjewääßelt: de + - [[de:A61]] + [[de:A 61]]
NOTE: Updating live wiki... Getting information for site wikipedia:ksh Note: this language does not allow global bots. Changing page [[A 61 (Watt eßß datt?)]] ~$
https://bugzilla.wikimedia.org/show_bug.cgi?id=55301
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/964
pywikipedia-bugs@lists.wikimedia.org