Last modified: 2010-02-09 11:50:30 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 T24020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22020 - Launching a mobile wikipedia URL which contains char URL encoded can generate an error
Launching a mobile wikipedia URL which contains char URL encoded can generate...
Status: RESOLVED FIXED
Product: Wikimedia Mobile
Classification: Unclassified
Retired (Ruby) Gateway (Other open bugs)
.5
All All
: Normal major (vote)
: ---
Assigned To: Hampton Catlin
http://it.m.wikipedia.org/wiki/Moli%E8re
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-05 14:55 UTC by Andrea Di Menna
Modified: 2010-02-09 11:50 UTC (History)
4 users (show)

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


Attachments

Description Andrea Di Menna 2010-01-05 14:55:18 UTC
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 "-//W3C//DTD 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?
Comment 1 Derk-Jan Hartman 2010-01-05 15:15:43 UTC
20311

*** This bug has been marked as a duplicate of bug 20311 ***
Comment 2 Andrea Di Menna 2010-01-05 15:22:23 UTC
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?
Comment 3 Roan Kattouw 2010-01-05 16:33:00 UTC
(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.
Comment 4 Andrea Di Menna 2010-01-05 16:42:49 UTC
(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
Comment 5 Derk-Jan Hartman 2010-01-06 18:38:16 UTC
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)
Comment 6 Hampton Catlin 2010-02-09 11:50:30 UTC
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!

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


Navigation
Links