Page MenuHomePhabricator

Launching a mobile wikipedia URL which contains char URL encoded can generate an error
Closed, ResolvedPublic

Description

Author: ninniuz

Description:
Trying to launch http://it.m.wikipedia.org/wiki/Moli%E8re causes an internal server error and a redirection to the full Wikipedia:

GET http://it.m.wikipedia.org/wiki/Moli%E8re HTTP/1.1
Host: it.m.wikipedia.org
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

HTTP/1.1 500 Internal Server Error
Server: nginx/0.5.33
Date: Tue, 05 Jan 2010 14:02:28 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive

3bb
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<body>
  <div id="container">
    <h2>Si .. verificato un problema.</h2>
    <p>Wikipedia mobile .. ancora in fase di sviluppo attivo e stiamo lavorando sodo per risolvere tutti i nostri errori interni. Questo errore .. gi.. stato notificato e verr.. presto corretto. Controlla nuovamente.</p>
  </div>
  <script type="text/javascript">
    var language = window.location.host.split(".")[0];
    
    if(language == "m") {
      language = navigator.language.substr(0,2);
    }
    
    var path = window.location.pathname;
    
    if(path.match("::Home")) {
      path = "/";
    }
    
    var redirectTo = "http://" + language + ".wikipedia.org/w/mobileRedirect.php?to=http://" + language + ".wikipedia.org" + path;
    window.location = redirectTo;
  </script>
</body>

</html>

Same thing happens also with http://en.m.wikipedia.org/wiki/Die_Br%FCcke
Is that an nginx issue?


Version: .5
Severity: major
URL: http://it.m.wikipedia.org/wiki/Moli%E8re

Details

Reference
bz22020

Event Timeline

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

20311

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

ninniuz wrote:

This is not a duplicate of bug 20311.
Bug 20311 refers to the <title> tag.
This one refers to GET requests with URLs which contains some URL encoded chars.

Can you reopen?

(In reply to comment #2)

This is not a duplicate of bug 20311.
Bug 20311 refers to the <title> tag.
This one refers to GET requests with URLs which contains some URL encoded
chars.

Can you reopen?

Anyone can reopen a bug, that's what the "Reopen bug" radio button near the bottom is for.

Reopening because the issues clearly aren't identical (title tag vs. HTTP 500); if they have the same underlying cause (which seems somewhat likely), feel free to re-dupe but do mention it so others know what's going on.

ninniuz wrote:

(In reply to comment #3)

(In reply to comment #2)

This is not a duplicate of bug 20311.
Bug 20311 refers to the <title> tag.
This one refers to GET requests with URLs which contains some URL encoded
chars.

Can you reopen?

Anyone can reopen a bug, that's what the "Reopen bug" radio button near the
bottom is for.

I know ;-) Just did not want to start opening and closing repeatedly this bug...

Reopening because the issues clearly aren't identical (title tag vs. HTTP 500);
if they have the same underlying cause (which seems somewhat likely), feel free
to re-dupe but do mention it so others know what's going on.

Thanks

Different problems perhaps, but with a common cause.
I hope to have fixed this with:

http://bit.ly/6Pb4v6 (not yet deployed)

http://bit.ly/6SAXUG (not yet deployed)

hcatlin wrote:

Unfortunately, the encoding fixes that thedj wrote didn't fix this. However, with some better error handling and a little JS, we should be all good now.

FIXED!