Last modified: 2013-10-05 05:00:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57301, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55301 - redirect pages not properly followed.
redirect pages not properly followed.
Status: NEW
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 05:00 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-05 05:00 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 05:00:34 UTC
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.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 05:00:36 UTC
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?\)\]\]
~$

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links