https://bugzilla.wikimedia.org/show_bug.cgi?id=45848
Web browser: ---
Bug ID: 45848
Summary: API is applying normalization that Title doesn't
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Blocks: 38712, 39480
Classification: Unclassified
Mobile Platform: ---
Please see bug 38712. After long debugging session I found out that API
normalizes page titles silently.
This confuses the heck out things like LQT, which has logic like if
(!$title->exists()) { /* call api internally to create the page */ }
I know that LQT should be calling WikiPage->doEdit directly, but that is
orthogonal to this bug.
I see few options how to fix:
1) Do not normalize titles in API
2) Throw an error if title does not normalize to the same as given
3) Make Title constructors to normalize the title the same way
Given that from normal web viewing it is impossible to access the
non-normalized title (goes to the normalized title), solution 3 looks most
sensible.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l