Last modified: 2013-06-26 23:03:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52173, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50173 - VisualEditor doesn't work in be-x-old.wikipedia.org (parsoidserver-http-bad-status: 404)
VisualEditor doesn't work in be-x-old.wikipedia.org (parsoidserver-http-bad-s...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-25 12:45 UTC by Pavel Selitskas [wizardist]
Modified: 2013-06-26 23:03 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pavel Selitskas [wizardist] 2013-06-25 12:45:43 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.
Comment 2 Pavel Selitskas [wizardist] 2013-06-25 17:03:32 UTC
(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.
Comment 3 Roan Kattouw 2013-06-26 02:58:38 UTC
(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.
Comment 4 Pavel Selitskas [wizardist] 2013-06-26 23:03:36 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links