Page MenuHomePhabricator

mobile users can be redirected to a non-existent www.m.project.org domain
Closed, ResolvedPublic

Description

mobile users can be redirected to a non-existant www.m.project.org domain

Unsure if this is a new issue since switch from squid to varnish. Also, don't know who exactly to blame (varnish vcl or apache conf?)

$ curl -vsL -A ANDROID https://wikipedia.org/wiki/foo 2>&1 >/dev/null | egrep -e '^< HTTP/1' -e '^< Location: ' -e $'^\* (Issue another request to this URL:|getaddrinfo\(3\) failed for|Couldn\'t resolve host)'
< HTTP/1.1 301 Moved Permanently
< Location: http://www.wikipedia.org/wiki/foo

< HTTP/1.1 302 Found
< Location: http://www.m.wikipedia.org/wiki/foo


Version: wmf-deployment
Severity: normal

Details

Reference
bz57132

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:15 AM
bzimport set Reference to bz57132.
bzimport added a subscriber: Unknown Object (MLST).

btw, does happen with both HTTP and HTTPS.

Domain related? Seemed better than general. Or Cunningham's Law? I dunno.

Confirming comment 0 (though I don't get the last two lines of output).

back to general. it's not dns. probably is varnish (VCL) but I haven't checked.

fgiunchedi claimed this task.

I think we've fixed this:

$ curl -vsL -A ANDROID https://wikipedia.org/wiki/foo 2>&1 >/dev/null | egrep -e '^< HTTP/1' -e '^< Location: ' -e $'^\* (Issue another request to this URL:|getaddrinfo\(3\) failed for|Couldn\'t resolve host)'
< HTTP/1.1 301 Moved Permanently
< Location: https://www.wikipedia.org/wiki/foo
* Issue another request to this URL: 'https://www.wikipedia.org/wiki/foo'
< HTTP/1.1 302 Found
< Location: https://www.m.wikipedia.org/wiki/foo
* Issue another request to this URL: 'https://www.m.wikipedia.org/wiki/foo'
< HTTP/1.1 301 Moved Permanently
< Location: https://en.wikipedia.org/wiki/foo
* Issue another request to this URL: 'https://en.wikipedia.org/wiki/foo'
< HTTP/1.1 302 Found
< Location: https://en.m.wikipedia.org/wiki/foo
* Issue another request to this URL: 'https://en.m.wikipedia.org/wiki/foo'
< HTTP/1.1 301 Moved Permanently
< Location: https://en.m.wikipedia.org/wiki/Foo
* Issue another request to this URL: 'https://en.m.wikipedia.org/wiki/Foo'
< HTTP/1.1 200 OK