Closed
Bug 736934
Opened 14 years ago
Closed 12 years ago
Handle version specific redirects by Bedrock to make .htaccess maintenance-free
Categories
(www.mozilla.org :: Bedrock, defect)
www.mozilla.org
Bedrock
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: akeybl, Assigned: kohei)
References
(Blocks 1 open bug)
Details
(Whiteboard: [kb=1082560] r=119183 b=trunk)
Attachments
(1 file, 3 obsolete files)
|
2.70 KB,
patch
|
Details | Diff | Splinter Review |
We need to figure out a way to set a single aurora, beta, release, and esr version in a single place for .htaccess. Right now we're running into bugs like bug 736698 every release.
| Reporter | ||
Comment 1•14 years ago
|
||
James - any ideas here?
Updated•14 years ago
|
Component: Webdev → www.mozilla.org/firefox
Product: mozilla.org → Websites
QA Contact: webdev → www-mozilla-com
| Assignee | ||
Comment 2•14 years ago
|
||
mozilla.jp has a PHP redirector code using version data (like firefoxDetails.class.php) so our .hteaccess is maintenance-free.
| Assignee | ||
Comment 3•14 years ago
|
||
... So I'll write a patch tomorrow. Bug 705416 will also lighten akeybl's workload.
| Assignee | ||
Comment 4•14 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Attachment #607509 -
Attachment description: Implement a universal redirector → Use PHP-based redirector for version-dependent URLs, instead of maintaining .htaccess
| Assignee | ||
Comment 5•14 years ago
|
||
Attachment #607509 -
Attachment is obsolete: true
Comment 6•14 years ago
|
||
This is a good goal, but we need to figure out if we should go ahead and do this on the Python said. We're in the middle of switching over everything to Python and I'd hate to add one more edge case to the PHP code that we have to port over in a few weeks. Let me figure out if we can fit this in soon.
| Reporter | ||
Comment 7•14 years ago
|
||
(In reply to James Long (:jlongster) from comment #6)
> This is a good goal, but we need to figure out if we should go ahead and do
> this on the Python said. We're in the middle of switching over everything to
> Python and I'd hate to add one more edge case to the PHP code that we have
> to port over in a few weeks. Let me figure out if we can fit this in soon.
Can we move forward with this? As seen in bug 738203, we're still running into htaccess problems given the complexity of the rules (if that is in fact the problem).
| Assignee | ||
Comment 8•14 years ago
|
||
I have no experience in Git and Python so it would be appreciated if someone could port my PHP patch (attachment 607523 [details] [diff] [review]) to Bedrock.
Updated•14 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
| Assignee | ||
Updated•13 years ago
|
Blocks: mozorg-redirects
| Assignee | ||
Comment 9•13 years ago
|
||
Comment on attachment 607523 [details] [diff] [review]
patch v2 (do not cache redirects)
I'll write a redirector code for Bedrock, based on my previous patch for the legacy PHP side.
Attachment #607523 -
Attachment is obsolete: true
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → kohei.yoshino.bugs
Status: NEW → ASSIGNED
Component: General → Bedrock
| Assignee | ||
Comment 10•13 years ago
|
||
Pull request for Bedrock: https://github.com/mozilla/bedrock/pull/1004
Updated•12 years ago
|
Whiteboard: [kb=1082560]
Comment 11•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/bedrock
https://github.com/mozilla/bedrock/commit/b8c81c37674ca8d142c58a2ae55fc16764fccf12
Bug 736934 - Figure out way to set single aurora, beta, release, esr versions in single place for .htaccess
Making `.htaccess` maintenance free.
https://github.com/mozilla/bedrock/commit/cf88a028cf902068f4b564e44472a1fcc4daa96a
Merge pull request #1004 from kyoshino/bug-736934-redirector
Bug 736934 - Figure out way to set single aurora, beta, release, esr versions in single place for .htaccess
Comment 12•12 years ago
|
||
We do still need to cleanup the .htaccess file, but I'm sure :kohei's patch is out of date since Fx 23 is out. Once this hits prod we can update the patch. We'll also need to contact Release Management to let them know that they can drop the .htaccess update step from their release tasks.
| Assignee | ||
Comment 13•12 years ago
|
||
Updated my patch for the .htaccess file in the PHP side.
Yes, it's good news for the RelEng team! .htaccess and firefox/releases/index.html (Bug 705416) are now maintenance-free!
Attachment #769490 -
Attachment is obsolete: true
| Assignee | ||
Comment 14•12 years ago
|
||
I should have changed the bug summary earlier...
Summary: Figure out way to set single aurora, beta, release, esr versions in single place for .htaccess → Handle version specific redirects by Bedrock to make .htaccess maintenance-free
| Assignee | ||
Comment 15•12 years ago
|
||
My Bedrock PR has been pushed to prod by pmac.
(In reply to Kohei Yoshino [:kohei] from comment #13)
> Created attachment 792569 [details] [diff] [review]
> .htaccess diff in the PHP side
Committed this patch to trunk in r119183.
Those redirects should work well as before:
https://www-dev.allizom.org/en-US/firefox/notes/
https://www-dev.allizom.org/en-US/firefox/beta/notes/
https://www-dev.allizom.org/en-US/firefox/aurora/notes/
https://www-dev.allizom.org/en-US/mobile/notes/
https://www-dev.allizom.org/en-US/mobile/beta/notes/
https://www-dev.allizom.org/en-US/mobile/aurora/notes/
https://www-dev.allizom.org/en-US/firefox/system-requirements.html
https://www-dev.allizom.org/en-US/firefox/24.0/releasenotes/
should show the same page as
https://www-dev.allizom.org/en-US/firefox/24.0beta/releasenotes/
Keywords: qawanted
| Assignee | ||
Comment 16•12 years ago
|
||
But... the following redirect is not working correctly. My bad :(
https://www-dev.allizom.org/en-US/firefox/beta/notes/
actual: https://www-dev.allizom.org/en-US/mobile/24.0b1/releasenotes/
expected: https://www-dev.allizom.org/en-US/mobile/24.0beta/releasenotes/
https://www-dev.allizom.org/en-US/mobile/beta/notes/ is also.
Will fix it up soon.
| Assignee | ||
Comment 17•12 years ago
|
||
Fixed the issue and ADDED TESTS:
https://github.com/mozilla/bedrock/pull/1182
| Assignee | ||
Comment 18•12 years ago
|
||
My pull request 1182 has been merged. So now all links in Comment 15 work as expected. r119183 should be merged to stage/prod once the PR hits prod.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Keywords: qawanted
Resolution: --- → FIXED
Whiteboard: [kb=1082560] → [kb=1082560] r=119183 b=trunk
Comment 19•12 years ago
|
||
Comment 20•12 years ago
|
||
fxied on stage https://www-dev.allizom.org/en-US/mobile/25.0a2/auroranotes/
Comment 21•12 years ago
|
||
fixed on production
https://www.mozilla.org/en-US/firefox/23.0.1/releasenotes/
https://www.mozilla.org/en-US/firefox/24.0beta/releasenotes/
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 22•12 years ago
|
||
pmac: could you merge r119183 to stage/prod?
Flags: needinfo?(pmac)
You need to log in
before you can comment on or make changes to this bug.
Description
•