Closed
Bug 1110340
Opened 10 years ago
Closed 10 years ago
Rework hotfix update script (import-installers.py) to split out download URL
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: spohl, Assigned: spohl)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file, 2 obsolete files)
13.47 KB,
patch
|
spohl
:
review+
|
Details | Diff | Splinter Review |
Reworking the Firefox hotfix update script (import-installers.py) should make it less likely for future hotfixes to have incorrect URLs. This was a problem in bug 1061975 when the URL was changed to point to ftp.mozilla.org directly instead of our CDN, which brought down ftp.mozilla.org.
Comment 1•10 years ago
|
||
I suggest going with checking that the certificate of the download is trusted and that the certificate's issuer and name are the values that we expect. Then it can just use http://download.mozilla.org/?os=win&lang=@AB_CD@&product=firefox-latest as the download url without having to update the hashes and file sizes for each locale when there is a new release.
Comment 2•10 years ago
|
||
BTW: this was recommended during the creation of the hotfix but for some reason unknown to me the more complicated approach was taken. It should also be possible to do all of this in NSIS, replace the statically linked exe used by the hotfix with the same NSIS executable, and thereby reduce the complexity and the add-on size since the NSIS exe will be significantly smaller.
Assignee | ||
Comment 3•10 years ago
|
||
I should have mentioned that this bug is an action item from the ftp outage postmortem: https://etherpad.mozilla.org/postmortem-ftpoutage-20141203-bug1107156
Reworking the script should reduce the risk of another bustage while we consider/develop the certificate checking.
Assignee | ||
Updated•10 years ago
|
Comment 4•10 years ago
|
||
Makes sense. This would be a good protective measure to check that it is pointing at 'download.mozilla.org' either way.
Assignee | ||
Comment 5•10 years ago
|
||
This should do it. Unfortunately, I seem to be unable to run the import-installers.py script in my virtualenv. The signature verification of the SHA512SUMS file fails with 'bad signature'. I believe this is a problem with my virtualenv and not any of my changes here for the following reasons:
1. The signature verification also fails without this patch applied.
2. The signature verifies successfully when I verify it manually, i.e. without the import-installers.py script.
3. If I comment out the verification step, the script runs successfully and outputs file sizes and hashes in json format.
One question that I had was whether or not I should create a new directory with this change, or apply it to the script in the v20140527.01 directory. Will the next update hotfix have a separate directory, or will we use this same directory again?
Attachment #8537264 -
Flags: review?(robert.strong.bugs)
Comment 6•10 years ago
|
||
That's up to you.
Assignee | ||
Comment 7•10 years ago
|
||
Personally, I'd favor a new directory for the next hotfix. Here is a patch that does just that.
Attachment #8537282 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8537264 [details] [diff] [review]
Diff
Keeping this patch around to more easily identify the code changes in the patch that creates a new directory.
Attachment #8537264 -
Attachment description: Patch → Diff
Attachment #8537264 -
Flags: review?(robert.strong.bugs)
Updated•10 years ago
|
Attachment #8537264 -
Flags: review+
Assignee | ||
Comment 9•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•10 years ago
|
||
Backed out previous patch for using hg add instead of hg copy:
http://hg.mozilla.org/releases/firefox-hotfixes/rev/9e9671f4c4e4
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 11•10 years ago
|
||
This patch now uses hg copy. Received r+ from rstrong via irc.
Attachment #8537264 -
Attachment is obsolete: true
Attachment #8537282 -
Attachment is obsolete: true
Attachment #8537282 -
Flags: review?(robert.strong.bugs)
Attachment #8538032 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•