Last modified: 2011-02-08 11:22:32 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 T29238, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27238 - Regression: change to the redirection of the iPad users
Regression: change to the redirection of the iPad users
Status: RESOLVED FIXED
Product: Wikimedia Mobile
Classification: Unclassified
Retired (Ruby) Gateway (Other open bugs)
.5
All All
: Normal normal (vote)
: ---
Assigned To: Hampton Catlin
:
: 27244 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-08 05:08 UTC by p858snake
Modified: 2011-02-08 11:22 UTC (History)
2 users (show)

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


Attachments

Comment 1 p858snake 2011-02-08 08:07:23 UTC
*** Bug 27244 has been marked as a duplicate of this bug. ***
Comment 2 Brion Vibber 2011-02-08 08:20:17 UTC
Culprit is r81128 (was merged to 1.16wmf4 in r67681).

It hasn't been merged to 1.17wmf1, so this behavior may disappear from production shortly.

Still needs to be fixed on trunk.
Comment 3 Brion Vibber 2011-02-08 08:31:25 UTC
I've reverted the change in r81700; the test cases were mysteriously deleted previously, so that's all of r81128 now reverted on trunk.

It looks like it was *intended* to fix Android tablets to not redirect to the mobile site, but apparently did so by removing any checks for Android, and replacing the Android, iPhone, and iPod checks with a "Mobile Safari" check which of course slapped the iPad across the head, exactly what shouldn't be done for a tablet.

A proper fix for that other problem would still need to be made.
Comment 4 Sam Reed (reedy) 2011-02-08 09:52:14 UTC
(In reply to comment #3)
> I've reverted the change in r81700; the test cases were mysteriously deleted
> previously, so that's all of r81128 now reverted on trunk.
> 
> It looks like it was *intended* to fix Android tablets to not redirect to the
> mobile site, but apparently did so by removing any checks for Android, and
> replacing the Android, iPhone, and iPod checks with a "Mobile Safari" check
> which of course slapped the iPad across the head, exactly what shouldn't be
> done for a tablet.
> 
> A proper fix for that other problem would still need to be made.

Test cases were deleted by hampton as an easier way for tomasz to commit it live (not having to add a directory).

However, we didn't work out why the hell he didn't just svn move them up a level into the main directory
Comment 5 Brion Vibber 2011-02-08 09:53:32 UTC
Broke the android issue out to bug 27245 for a fresh fix.
Comment 6 Hampton Catlin 2011-02-08 11:13:10 UTC
Ok, so lets go through these. The test cases were not supposed to be deleted. I *thought* I moved them. But, since I haven't used SVN in any capacity in 10 years, I f*cked it up.

Sorry!

Should be closed in r81714 with more tests and a tweaked UA regex.
Comment 7 Brion Vibber 2011-02-08 11:20:49 UTC
See my comments on code review for r81714; this regex is super unclear as to its purpose and is likely very fragile, and the test cases don't appear to include any cases for the Android 3.0 tablets that the change is meant to address.
Comment 8 Brion Vibber 2011-02-08 11:22:32 UTC
Comment and reopen belonged on bug 27245.

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


Navigation
Links