Page MenuHomePhabricator

"Old" is broken: Error: mw.Title: Could not parse title ".digamma"
Closed, ResolvedPublic

Description

Screenshot

See associated screenshot; if you go to the "old" view of Page Curation, it is, for some unknown reason, totally borked. Reported by multiple users.


Version: master
Severity: major

Attached:

old.png (672×1 px, 32 KB)

Details

Reference
bz52683

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:02 AM
bzimport added a project: PageTriage.
bzimport set Reference to bz52683.

Cannot confirm with Firefox 22.0 on F19 on http://en.wikipedia.org/wiki/Special:NewPagesFeed though the "loading" animation next to the "Refresh list" button does not stop.

Exact URLs and browser info to reproduce welcome (in general), and/or links to forum threads.

Forum threads?

The exact URl is Special:NewPagesFeed; there's no real way to modify that URL. Firefox 22/Windows 7, Iceweasel 17/latest stable Debian release. I'll ask other users for their info.

Also on Chrome 28.0.1500.95/Windows 7.

I confirm the error. There is an error with javascript that renders mw.Title item.

Chrome 28.0, Fedora 19

  • This bug has been marked as a duplicate of bug 51308 ***

Are we sure this is the same bug? It wasn't previously breaking on full-stop including pages.

(In reply to comment #7)

Are we sure this is the same bug? It wasn't previously breaking on full-stop
including pages.

This seems rather clear:

(In reply to comment #5)

Error: Error: mw.Title: Could not parse title ".digamma"

Sure, but again, we've had that bug live and present for months and it has never caused those effects before. I'm not particularly technical, but I'd suggest there are two possible scenarios here:

*The mw.Title parse failure is the source of the weird failure to display old pages - something that has never happened before, even with other failures in the same system to parse full stops;
*The two bugs are unrelated and occurring at the same time; the old page is loaded, generating the mw.Title parse error message, and then drops out of existence due to a second issue - something that would make sense since in testing the failure of the "old" view I've noticed that it's not failing to load the content: it loads as a FOUC and then vanishes from view.

Reopening; sorry, but side-effects of an existing bug do not simply reappear, independent of the initial bug, N months later, without any tweaks in the interim.

And reprioritising, too. This has left the suite totally broken.

Not sure why Nischay is an assignee, he is no longer at WMF. Andre, could you check the default assignee list? Adding Benny who should be able to help with this.

Fabrice, this is a pretty critical new bug which we'll have to get sorted out ASAP.

The underlying bug is in core. mw.Title is a mess right now that in some cases is more strict and sometimes less strict than the Title.php equivalent.

I'm currently working on rewriting that core module.

Meanwhile, I think this NewPageFeed bug is caused by something no longer catching the exception when constructing a mw.Title object from arbitrary input (like page names). Or perhaps it never caught it to begin with.

Either way, though I don't like this pattern, in JS right now mw.Title throws on invalid titles, just like Title.php returns null instead of a Title instance from Title::newFromText if the input is invalid.

So where in PHP you need:

$t = Title::newFromText();
if ( $t !== null ) {
} else {
}

in JS you need:

try {

$t = new mw.Title();

} catch (e) {
}

(In reply to comment #12 by Erik)

Not sure why Nischay is an assignee, he is no longer at WMF. Andre, could you
check the default assignee list?

Default assignee had been nobody@ already; Nischay was set manually.

(In reply to comment #13 by Krinkle)

The underlying bug is in core.

I assume it's bug 51308, adding dependency.

Change 82575 had a related patch set uploaded by Bsitu:
Get rid of some javascript mw.title related code

https://gerrit.wikimedia.org/r/82575

Change 82575 merged by jenkins-bot:
Get rid of some javascript mw.title related code

https://gerrit.wikimedia.org/r/82575