Closed Bug 736934 Opened 12 years ago Closed 11 years ago

Handle version specific redirects by Bedrock to make .htaccess maintenance-free

Categories

(www.mozilla.org :: Bedrock, defect)

defect
Not set
normal

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)

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.
James - any ideas here?
Component: Webdev → www.mozilla.org/firefox
Product: mozilla.org → Websites
QA Contact: webdev → www-mozilla-com
mozilla.jp has a PHP redirector code using version data (like firefoxDetails.class.php) so our .hteaccess is maintenance-free.
... So I'll write a patch tomorrow. Bug 705416 will also lighten akeybl's workload.
Attachment #607509 - Attachment description: Implement a universal redirector → Use PHP-based redirector for version-dependent URLs, instead of maintaining .htaccess
Attachment #607509 - Attachment is obsolete: true
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.
(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).
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.
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Blocks: 752366
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: nobody → kohei.yoshino.bugs
Status: NEW → ASSIGNED
Component: General → Bedrock
Attached patch .htaccess diff in the PHP side (obsolete) — Splinter Review
Pull request for Bedrock: https://github.com/mozilla/bedrock/pull/1004
Whiteboard: [kb=1082560]
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
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.
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
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
Fixed the issue and ADDED TESTS:
https://github.com/mozilla/bedrock/pull/1182
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: 11 years ago
Keywords: qawanted
Resolution: --- → FIXED
Whiteboard: [kb=1082560] → [kb=1082560] r=119183 b=trunk
pmac: could you merge r119183 to stage/prod?
Flags: needinfo?(pmac)
Merged to prod in r121584.
Flags: needinfo?(pmac)
Blocks: 947890
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: