Last modified: 2014-11-16 15:47:16 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 T71118, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69118 - Link() and Site.sametitle fail when namespace case is different from site case
Link() and Site.sametitle fail when namespace case is different from site case
Status: PATCH_TO_REVIEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-04 19:10 UTC by John Mark Vandenberg
Modified: 2014-11-16 15:47 UTC (History)
0 users

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


Attachments

Description John Mark Vandenberg 2014-08-04 19:10:20 UTC
As can be seen at the following, the 'site' has a case in the general chunk, and each namespace can have another case.  e.g. User & MediaWiki & Special are not case-sensitive, whereas the other namespaces are.

https://en.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces

pywikibot (core and compat) only fetch and use the case rule from the general site data, not for each namespace.
Comment 1 John Mark Vandenberg 2014-08-05 00:48:02 UTC
Also all use of nocapitalize is probably problematic.
Comment 2 Gerrit Notification Bot 2014-08-05 01:20:25 UTC
Change 151809 had a related patch set uploaded by XZise:
Site.sametitle recognizes namespace capitalisation

https://gerrit.wikimedia.org/r/151809
Comment 3 Gerrit Notification Bot 2014-09-20 17:06:01 UTC
Change 161676 had a related patch set uploaded by XZise:
[FIX] Only apply uppercase to Link title if namespace dictates so

https://gerrit.wikimedia.org/r/161676
Comment 4 Gerrit Notification Bot 2014-09-21 10:48:17 UTC
Change 161676 merged by jenkins-bot:
[FIX] Only apply uppercase to Link title if namespace dictates so

https://gerrit.wikimedia.org/r/161676
Comment 5 Gerrit Notification Bot 2014-11-16 15:47:16 UTC
Change 151809 merged by jenkins-bot:
[FEAT] Improved Site.sametitle

https://gerrit.wikimedia.org/r/151809

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


Navigation
Links