Page MenuHomePhabricator

Articles with forward slash in Wikipedia Mobile
Closed, ResolvedPublic

Description

Author: malrase

Description:
In the example above, using the mobile site brings up a search page for the article, rather than the article itself. Clicking on the article merely appears to refresh the page.


Version: .5
Severity: normal
URL: http://en.m.wikipedia.org/wiki//dev/random

Details

Reference
bz19946

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:38 PM
bzimport set Reference to bz19946.

hcatlin wrote:

I have done some initial investigation on this bug and it seems
that it is related to the way that URLs in the Merb framework
are interpreted. It just assumes that a double slash is a mistake.
Which, isn't always a bad assumption. However, in this case it bites
us in the ass.

It likely changes the // internally to /./

#merb

<+merboutpost> thedj: AH :-)
<+merboutpost> thedj: hm...
<+merboutpost> thedj: interesting, that's the router behaviour, feel free to file the Ticket in the lighthouse. It will take me some time to change that. I remember I've seen some similar ticket or conversation.
<+merboutpost> thedj: I remember that the result was: Not easy to fix :-)

No time to figure out how their OpenID works, and don't feel like signing up for Yet Another Bugreporting system.

https://merb.lighthouseapp.com/

hcatlin wrote:

Fixed this with some custom code in the show action. Only fixed for double slashes at the beginning of articles. Any double slash in the middle will break, but I can't think of any examples of that, so we will consider this closed for the moment.

PS: please don't just arbitrarily create an article with two slashes. ;)