Closed
Bug 742998
Opened 12 years ago
Closed 12 years ago
Web server redirect for Fx 3.6 users upgrading to version 12
Categories
(www.mozilla.org :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cmore, Assigned: jlong)
References
Details
Attachments
(1 file)
476 bytes,
patch
|
jlong
:
review-
|
Details | Diff | Splinter Review |
We would like to create a redirect on Mozilla.org to send users that upgrade from 3.6 to version 12 to a special page instead of the normal What's New. Traditionally, we would not be able to know what version a user upgraded from from a mozilla.org perspective, but a patch landing in Fx 12 will allow this. We need a redirect that will match the following URL+QueryString: https://www.mozilla.org/firefox/12.0/whatsnew/?oldversion=3.6.28 To: http://www.mozilla.org/firefox/central/ The redirect should be a regex that matches "/any-locale/firefox/12.0/whatsnew/?oldversion=3.6" and redirects to "/firefox/central/" Here is a quick stab at the Redirect Match. RedirectMatch ^(/[^/])+/firefox/12\.[0-9]*(\.[0-9])+/whatsnew/\?oldversion=3\.6\.[0-9]*$ /firefox/central/ This should match the What's New page for 12.x including 12.x.y users where the query string contains oldversion=3.6.x regardless if the locale at the start of the URL or not. Then it redirects any match to /firefox/central and that page's locale redirection can redirect again. If we wanted to be more clever, we could pass the locale to the central page by back references. I wouldn't copy/paste my RedirectMatch without reviewing it first as I did it between meetings. :)
Comment 1•12 years ago
|
||
So AFAIK, all the mozilla.org redirects are handled by the mozilla.org team and not IT. If that's not changed in the recent past, this bug needs to be put in Websites -> www.mozilla.org and the infra flag taken off.
Updated•12 years ago
|
Group: infra
Comment 2•12 years ago
|
||
fox2mike is correct... redirects on www.mozilla.org are currently managed by web dev. Moving!
Assignee: server-ops → nobody
Component: Server Operations → www.mozilla.org
Product: mozilla.org → Websites
QA Contact: phong → www-mozilla-org
Reporter | ||
Comment 3•12 years ago
|
||
Jlongster: Is this something you can help get set up and test on dev/stage?
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → jlong
Comment 4•12 years ago
|
||
If it makes any difference, the GET of "/any-locale/firefox/12.0/whatsnew/?oldversion=3.6" will be on www.mozilla.com rather than www.mozilla.org. And oldversion will run from 3.6.13 through 3.6.28, but the 3.6.* match suggested shouldn't cause any problems.
Assignee | ||
Comment 5•12 years ago
|
||
Looking into it now, but yes, we should be able to do this.
Reporter | ||
Comment 6•12 years ago
|
||
(In reply to James Long (:jlongster) from comment #5) > Looking into it now, but yes, we should be able to do this. Can you set up the redirect on dev this week as we are only a few weeks away from needing this in production? We could and should go live with this redirect ahead of the EOL of 3.6 since the querystring-based redirect will not affect anyone until Fx 12 lands.
Assignee | ||
Comment 7•12 years ago
|
||
Yep, I can do that this week. Probably tomorrow, or Thursday if I get really tied up with things.
Reporter | ||
Comment 9•12 years ago
|
||
Hi Everyone. Jlongster made the redirect on dev and you should test the link below with all of the variations of 3.6 versions: https://www-dev.allizom.org/en-US/firefox/12.0/whatsnew/?oldversion=3.6.28 Thanks!
Reporter | ||
Comment 10•12 years ago
|
||
James, can you adjust the redirect so that the third digit is optional? i.e. 3\.6\(\.[0-9]+)*
Comment 11•12 years ago
|
||
Sorry, I messed up a little here. Rather than sending oldversion=3.6.*, upgrades from Firefox 3.6 will actually end up at oldversion=rv:1.9.2.*, due to a quick in how the "old version" was stored prior to bug 728932 (in Firefox 12 and earlier). So we're going to need to adjust the redirect so that it matches oldversion parameters that begin with "rv:1.9.2", rather than "3.6".
Comment 12•12 years ago
|
||
I believe this change would do the trick, but I haven't tested it!
Attachment #615607 -
Flags: review?(jlong)
Comment 13•12 years ago
|
||
Ah, I missed a "." before the trailing *. But you get the idea!
Reporter | ||
Comment 14•12 years ago
|
||
James: Can you make these changes?
Assignee | ||
Comment 15•12 years ago
|
||
done, please test
Whiteboard: r=104396 b=trunk → r=104396,104427 b=trunk
Comment 16•12 years ago
|
||
r104427
Comment 17•12 years ago
|
||
Tested on Windows 7, Ubuntu 11.10, and Mac OSX 10.6: Firefox 3.6.28 en-US: http://www.mozilla.org/en-US/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28 Firefox 3.6.28 de: http://www.mozilla.org/en-US/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28 Displays a page stating: "You’re running an unknown version of Firefox."
Comment 18•12 years ago
|
||
Sorry, the 3.6.28 de URL is incorrect (copy didn't take from VM). The real URL was: http://www.mozilla.org/de/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28
Assignee | ||
Comment 19•12 years ago
|
||
It's not live yet, you have to test on the dev site: http://www-dev.allizom.org/de/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28
Assignee | ||
Comment 20•12 years ago
|
||
Comment on attachment 615607 [details] [diff] [review] patch Review of attachment 615607 [details] [diff] [review]: ----------------------------------------------------------------- r- because it's missing the trailing ., but I've copied it and fixed it.
Attachment #615607 -
Flags: review?(jlong) → review-
Comment 21•12 years ago
|
||
These links all behave as I would expect them to: http://www-dev.allizom.org/de/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28 [*] http://www-dev.allizom.org/en-US/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28 http://www-dev.allizom.org/de/firefox/12.0/whatsnew/?oldversion=rv:11.0 http://www-dev.allizom.org/en-US/firefox/12.0/whatsnew/?oldversion=rv:11.0 http://www-dev.allizom.org/en-US/firefox/?oldversion=rv:11.0 http://www-dev.allizom.org/de/firefox/?oldversion=rv:1.9.2.28 [*] This link redirects me to the en-US central page, because my build's locale is en-US, and the redirect points to the locale-agnostic link (/firefox/central without the "de"), so the web-side locale detection kicks in. Should work fine with actual de builds. Can we push this to production, and then have Anthony test the end-to-end path there with Nick's test snippets?
Assignee | ||
Comment 22•12 years ago
|
||
Yep, pushed to production r104436
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: r=104396,104427 b=trunk
Reporter | ||
Comment 23•12 years ago
|
||
All: Please test this URL pattern: http://www.mozilla.org/firefox/12.0/whatsnew/?oldversion=rv:1.9.2.28 As Gavin mentioned, the redirect is locale-agnostic and thus server-side locale detection will take over regardless of what locale you were at when redirection first took place. Thanks!
Comment 24•12 years ago
|
||
I'm unable to test this end-to-end right now due to 3.6.{13-28} -> 11.0 EOL snippets being pushed to releasetest.
Comment 25•12 years ago
|
||
I repushed the test snippets so you can test end-to-end for 3.6.28 en-US/de.
Comment 26•12 years ago
|
||
Just tried Firefox 3.6.28 en-US -> 12.0 on releasetest. Build updated fine but I get the following URL on restart: Tab 0: http://www.google.ca/firefox?client=firefox-a&rls=org.mozilla:en-US:official Tab 1: http://www.mozilla.org/en-US/firefox/central/
Comment 27•12 years ago
|
||
Excellent, that's the expected behavior.
Comment 28•12 years ago
|
||
Okay, good -- checking 3.6.28 de now.
Comment 29•12 years ago
|
||
Firefox 3.6.28 de -> 12.0 on releasetest: Tab 0: http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:de:official Tab 1: http://www.mozilla.org/de/firefox/central/ Looks good to me.
Updated•12 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•