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:
- Do not normalize titles in API
- Throw an error if title does not normalize to the same as given
- 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.
Version: 1.21.x
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=27849
https://bugzilla.wikimedia.org/show_bug.cgi?id=33465