Closed Bug 377955 Opened 17 years ago Closed 17 years ago

download.js and products/download.html should be able to use different download URLs

Categories

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

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mscott, Assigned: reed)

References

()

Details

Attachments

(1 file)

http://www.mozilla.com/en-US/thunderbird/all.html

Thunderbird 2 is configured to use bouncer 2 at download2.mozilla.org.

however the download.js script shared by Thunderbird and Firefox is hardcoded to use download.mozilla.org.

Reed/morgamic/preed/mrz and others are brain storming on IRC about how to fix this in the short term and in the long term.
Looks like preed / morgamic are going to put the info in bouncer1, but I wrote this mod_rewrite magic that would work:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^product=thunderbird-2\.0\.0\.0
RewriteRule ^(.*)$ http://download2.mozilla.org/
OS: Windows XP → All
bouncer 1 links look they are starting to work, I'm able to start downloading builds on: http://www.mozilla.com/en-US/thunderbird/all.html.

OS: All → Windows XP
Do we want to leave it with bouncer1 for now or try using the rewrite?
OS: Windows XP → All
Let's fix the website to point Thunderbird only to bouncer2.

After pushing it to staging, let us know, and we'll run a download checker against Thunderbird and Firefox (on staging), and then we can push to prod.
I'll take a look at changing download.js to make this work while leaving firefox downloads alone. I'll submit my ideas to rhelmer and reed for review tomorrow to see what they think.
download.js isn't the only thing that needs to be changed. products/download.html will need to be modified, too.
do you need that we change thunderbird download links on mozilla europe to point to download2.mozilla.org instead of download.mozilla.org ?
No, for now we will use bouncer1 until we figure out the safest way to redirect tb to bouncer2.
This particular issue was fixed around 245pm pst.  Please reopen if there are still issues.  :)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Here's my first cut at modifying download.js and download.html to route thunderbird 2.0.0.0 (and higher) downloads through bouncer 2. Everything else (including Firefox) continues to use bouncer 1.

This change is on the trunk.stage.mozilla.com so reviewers and testers can see how it behaves. 

Here are the tests I did. Note you need to test with both firefox and IE7 because we write out different download urls (firefox goes through download.html). You can verify the download url used by download.html by looking at the url linked to in the "use this link" text on that page.

Testing Thunderbird downloads using Firefox:

https://en.www.trunk.stage.mozilla.com/en/thunderbird/all.html  - Each 2.0.0.0 product link should take you to download.html which in turn loads from download2.mozilla.org. The 1.5.0.x links on this page should go through download.html which should load from download.mozilla.org.

https://en.www.trunk.stage.mozilla.com/en/thunderbird/all-older.html - every product link on this page should go through download.html which should laod from download.mozilla.org. 

https://en.www.trunk.stage.mozilla.com/en/thunderbird - The download now button should take you through download.html using download2.mozilla.org

Thunderbird using IE 7:

https://en.www.trunk.stage.mozilla.com/en/thunderbird/all.html  - Each 2.0.0.0 product link should use download2.mozilla.org if you hover over the link on this page. The 1.5.0.x links on this page should use download.mozilla.org

https://en.www.trunk.stage.mozilla.com/en/thunderbird/all-older.html - every download link on this page should use download.mozilla.org

https://en.www.trunk.stage.mozilla.com/en/thunderbird - The download now button should use download2.mozilla.org

Downloading Firefox using Firefox:

https://en.www.trunk.stage.mozilla.com/en/firefox/all.html  - All download links on this page should take you to download.html which in turn loads from download.mozilla.org. 

https://en.www.trunk.stage.mozilla.com/en/firefox/all-older.html - every product link on this page should go through download.html which should laod from download.mozilla.org. 

https://en.www.trunk.stage.mozilla.com/en/firefox - The download now button should take you through download.html using download.mozilla.org

Downloading Firefox using IE 7:

https://en.www.trunk.stage.mozilla.com/en/firefox/all.html  - Every download link should use download.mozilla.org if you hover over the link on this page. 

https://en.www.trunk.stage.mozilla.com/en/firefox/all-older.html - every download link on this page should use download.mozilla.org

https://en.www.trunk.stage.mozilla.com/en/firefox- The download now button should go through download.mozilla.org
Comment on attachment 262176 [details] [diff] [review]
download.js and download.html changes to make thunderbird 2 use bouncer2

What do you guys think of this approach?
Attachment #262176 - Flags: review?(reed)
Comment on attachment 262176 [details] [diff] [review]
download.js and download.html changes to make thunderbird 2 use bouncer2

Rob might have some ideas on this too.
Attachment #262176 - Flags: review?(rhelmer)
Severity: blocker → major
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Unable to download thunderbird 2 from bouncer links on all.html → download.js and products/download.html should be able to use different download URLs
Assignee: nobody → reed
Status: REOPENED → NEW
Comment on attachment 262176 [details] [diff] [review]
download.js and download.html changes to make thunderbird 2 use bouncer2

I'm rewriting a lot of this. I think I can just make products/download.html pull the info from download.js instead of keeping two copies of the same information.
Attachment #262176 - Flags: review?(rhelmer)
Attachment #262176 - Flags: review?(reed)
Attachment #262176 - Flags: review-
Sending        trunk/en-US/products/download.html
Sending        trunk/js/download.js
Transmitting file data ..
Committed revision 3487.
Status: NEW → ASSIGNED
Can we test this a bit and get this up this week?  We'd like to get stuff pointing at bouncer2 so we can do a full migration next week or so.
It's a minor issue but bug 377924 comment #6 is still true in the new logic.
Tagged for production in r3717.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Component: www.mozilla.org/firefox → www.mozilla.org
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.

Attachment

General

Created:
Updated:
Size: