Page MenuHomePhabricator

Blackberry 10 SDK dev device doesn't redirect to mobile site
Closed, ResolvedPublic

Description

Testing the VMWare image Blackberry 10 alpha simulator, the browser doesn't get redirected to our mobile site.

User-agent: Mozilla/5.0 (BB10; Touch) AppleWebKit/537.3+ (KHTML, like Gecko) Version/10.0.9.386 Mobile Safari/537.3+


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/

Details

Reference
bz40513

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:11 AM
bzimport set Reference to bz40513.
bzimport added a subscriber: Unknown Object (MLST).

Confirmed same behavior, user-agent with the physical developer device.

I guess we need to update our Device Detection see bug 37526 for instructions on how this can be done.

This doesn't make sense :-(
I updated tests (https://gerrit.wikimedia.org/r/31581) and it suggests that this should be redirecting.

I guess the varnish configuration is working slightly differently..
https://gerrit.wikimedia.org/r/gitweb?p=operations/puppet.git;a=blob;f=templates/varnish/mobile-frontend.inc.vcl.erb

Ugh, I hate all that X-Device stuff ...

I'm trying to make sense of the Varnish config; it looks like BB10 will be detected as "webkit"... but that would surely detect Chrome and Safari and whatnot on desktop as well, which obviously don't get redirected. So either I don't understand something in how this thing works, or I don't understand why it doesn't redirect those browsers. ;)

Still not redirecting after latest BB 10 dev alpha update.

Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.0.9.1103 Mobile Safari/537.10+

This device is probably missing the squid ACLs that determine whether or not the request should be forwarded to mobile varnish. Looking quickly, I don't see any rules there that the UA would match. AFAIK these ACLs are only visible on Fenari in /home/wikipedia/conf/squid/mobile_acls.conf

Looks like someone needs to add "mobile" to that list... and maybe remove a bunch of other things that become unnecessary. :P

Setting bug 40919 as a dep, since fix for that fixes this.

Fix for bug 40919 was just deployed, so this should be fixed as well, per comment 8.

Confirmed fixed -- zh.wikipedia.org and fr.wikipedia.org now redirect to mobile on my BB 10 alpha device. :D Thanks!