Last modified: 2013-06-26 23:03:36 UTC
Dash-to-underscore conversion is frucked up yet again? When "Edit" is clicked, an API request is issued with params: action:visualeditor paction:parse page:Новая_зямля oldid:1630719 token:[screened] format:json Response: {"servedby":"mw1141","error":{"code":"parsoidserver-http-bad-status","info":"404"}} VE works at be.wikipedia.org, but it doesn't work at be-x-old.wikipedia.org, bat-smg.wikipedia.org, and maybe other sites with dash in the site ID.
Roan - is this a config issue at our end or something else? http://titanium.wikimedia.org/be-x-oldwiki/Галоўная_старонка?oldid=1535753 and http://parsoid.wmflabs.org/be-x-old/Галоўная_старонка?oldid=1535753 both work fine for me, but in VE https://be-x-old.wikipedia.org/wiki/Галоўная_старонка?oldid=1535753&veaction=edit does indeed 404.
(In reply to comment #1) > Roan - is this a config issue at our end or something else? > > http://titanium.wikimedia.org/be-x-oldwiki/Галоўная_старонка?oldid=1535753 > and > http://parsoid.wmflabs.org/be-x-old/Галоўная_старонка?oldid=1535753 both work > fine for me, but in VE > https://be-x-old.wikipedia.org/wiki/ > Галоўная_старонка?oldid=1535753&veaction=edit > does indeed 404. I think it's a config issue. CommonSettings.php on line 1890 says: $wgVisualEditorParsoidPrefix = $wgDBname; DB names are written with underscores instead of dashes. Conversion '_'->'-' should be performed here. This is a typical error in WMF configs. I used to run against it even in MediaWiki core.
(In reply to comment #2) > (In reply to comment #1) > > Roan - is this a config issue at our end or something else? > > > > http://titanium.wikimedia.org/be-x-oldwiki/Галоўная_старонка?oldid=1535753 > > and > > http://parsoid.wmflabs.org/be-x-old/Галоўная_старонка?oldid=1535753 both work > > fine for me, but in VE > > https://be-x-old.wikipedia.org/wiki/ > > Галоўная_старонка?oldid=1535753&veaction=edit > > does indeed 404. > > I think it's a config issue. > > CommonSettings.php on line 1890 says: > $wgVisualEditorParsoidPrefix = $wgDBname; > > DB names are written with underscores instead of dashes. Conversion '_'->'-' > should be performed here. > Turns out we did actually have the DB names mapped correctly, but to the wrong URLs. We had stuff like: 'map_bmswiki': 'http://map_bms.wikipedia.org/w/api.php', which is wrong, we need URLs with dashes. I have fixed this in the Parsoid config.
(In reply to comment #3) > I have fixed this in the Parsoid config. Can you publish the link to the change in Gerrit (if it is publicly available), just for my interest? Thanks for fixing, btw.