Last modified: 2014-02-12 23:35:52 UTC
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.
Created attachment 11893 [details] Script to illustrate the problem Here is a script I used to test this.