[Pywikipedia-l] [ pywikipediabot-Bugs-1881742 ] Casing problem with mediawiki_message
SourceForge.net
noreply at sourceforge.net
Wed Jan 30 11:41:45 UTC 2008
Bugs item #1881742, was opened at 2008-01-29 12:27
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1881742&group_id=93107
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: other
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dashiva (magnusrk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Casing problem with mediawiki_message
Initial Comment:
mediawiki_message in wikipedia.py uses the PHP view of Special:Allmessages as fallback if the specific message page is missing (common in older MW versions).
However, this only registers messages with the first letter lowercase, while regular page access is first letter CI. There are six calls to mediawiki_message using uppercased first letters in wikipedia.py alone, probably many more elsewhere (based on current HEAD).
mediawiki_message should lowercase the first letter of the requested message name before doing the lookup.
----------------------------------------------------------------------
>Comment By: Daniel Herding (wikipedian)
Date: 2008-01-30 12:41
Message:
Logged In: YES
user_id=880694
Originator: NO
Fixed by russblau on 2008-01-29
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-01-29 16:38
Message:
Logged In: NO
No, the bug was in the Site method mediawiki_message(), not the deprecated
module mediawiki_messages.py. Bug fixed in r4947.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-29 16:11
Message:
Logged In: YES
user_id=1738850
Originator: NO
Module is deprecated since Wed Jun 20 14:42:55 2007 UTC
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1881742&group_id=93107
More information about the Pywikipedia-l
mailing list