https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
Bug ID: 69118 Summary: Link() and Site.sametitle fail when namespace case is different from site case Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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&sipro...
pywikibot (core and compat) only fetch and use the case rule from the general site data, not for each namespace.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- Also all use of nocapitalize is probably problematic.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151809 had a related patch set uploaded by XZise: Site.sametitle recognizes namespace capitalisation
https://gerrit.wikimedia.org/r/151809
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
--- Comment #4 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 161676 merged by jenkins-bot: [FIX] Only apply uppercase to Link title if namespace dictates so
https://gerrit.wikimedia.org/r/161676
https://bugzilla.wikimedia.org/show_bug.cgi?id=69118
--- Comment #5 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151809 merged by jenkins-bot: [FEAT] Improved Site.sametitle
https://gerrit.wikimedia.org/r/151809
pywikipedia-bugs@lists.wikimedia.org