Page MenuHomePhabricator

Empty reply for pages with Special characters in french REST API
Open, LowPublic


Hello folks at Wikimedia :)

given the followings request to regular pages, the replies are empty. There is a common denominator in that they all contain special characters in their titles.

Keep up the great work, Enrico

Event Timeline

daniel triaged this task as High priority.Jan 6 2020, 5:48 PM
daniel raised the priority of this task from High to Needs Triage.Jan 6 2020, 6:53 PM
daniel triaged this task as High priority.
daniel moved this task from Inbox to Backlog on the Platform Team Workboards (Clinic Duty Team) board.

Some of the links in the task description do provide the content.

Others generate a self-redirect with no content, which are the problem. I'll pick '%EA%9E%86' as an example

Getting Parsoid HTML for these pages give the HTML for a redirect page, redirecting to self. That is what's stored in Cassandra for the page. The etag of the page has some obscure revision number '124002832'.

Requesting a rerender of the page with 'no-cache' generates a proper render, with a proper revision number '93335907'. However it's not stored in the latest bucket since we do rely on the revision number increasing in Cassandra.

So, the bug is clearly in RESTBase. The revision '124002832' belongs to the pageꞇ&redirect=no - the small version of the letter .

So the core reason of the problem is again differences between the behavior of strtoupper in PHP vs .toUpperCase in JS.

Seems like the core reason is the overrides introduced in T219279 and mediawiki-config Php72ToUpper.php file that overrides the upper-casing of certain characters in php for backwards compatibility.

Pchelolo lowered the priority of this task from High to Low.Apr 15 2020, 4:33 PM

This isn't good, but we can't do much about it until we have more info. If this pops up again, we should bump the prio again.

Aklapper added a subscriber: AMooney.

@AMooney: Assuming that "Set projects" was accidentally used instead of "Add projects", hence restoring some previous project tags.