Last modified: 2014-02-12 23:46:14 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 T42513, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40513 - Blackberry 10 SDK dev device doesn't redirect to mobile site
Blackberry 10 SDK dev device doesn't redirect to mobile site
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/
:
Depends on: 40919
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-25 20:01 UTC by Brion Vibber
Modified: 2014-02-12 23:46 UTC (History)
10 users (show)

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


Attachments

Description Brion Vibber 2012-09-25 20:01:16 UTC
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+
Comment 1 Brion Vibber 2012-09-26 20:25:13 UTC
Confirmed same behavior, user-agent with the physical developer device.
Comment 2 Jon 2012-10-11 15:35:41 UTC
I guess we need to update our Device Detection see bug 37526 for instructions on how this can be done.
Comment 3 Jon 2012-11-02 23:04:59 UTC
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
Comment 4 Brion Vibber 2012-11-05 05:38:27 UTC
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. ;)
Comment 5 Brion Vibber 2012-12-03 19:36:31 UTC
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+
Comment 6 Arthur Richards 2012-12-03 20:04:10 UTC
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
Comment 7 Brion Vibber 2012-12-03 20:22:20 UTC
Looks like someone needs to add "mobile" to that list... and maybe remove a bunch of other things that become unnecessary. :P
Comment 8 Brion Vibber 2012-12-03 20:31:29 UTC
Setting bug 40919 as a dep, since fix for that fixes this.
Comment 9 Faidon Liambotis 2012-12-03 20:50:15 UTC
Fix for bug 40919 was just deployed, so this should be fixed as well, per comment 8.
Comment 10 Brion Vibber 2012-12-03 20:51:50 UTC
Confirmed fixed -- zh.wikipedia.org and fr.wikipedia.org now redirect to mobile on my BB 10 alpha device. :D Thanks!

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


Navigation
Links