Closed Bug 310421 Opened 19 years ago Closed 19 years ago

Updates fail due to missing hash

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dveditz, Assigned: robert.strong.bugs)

References

Details

(Keywords: fixed1.8, regression)

Attachments

(1 file)

Since bug 306478 landed updates fail since none of the update rdf files yet
specify the hash. The hash should be optional. Enforced if it's present, of
course, but not required as that breaks existing update sites.

See bug 306478 comment 13.

reason for the failure, backend looks for null as "no hash", a blank string is
interpreted as a malformed hash (that is, asserting that the calling code
*intended* a hash check).
Keywords: regression
Attached patch patchSplinter Review
Thought I had this already... that's what I get for thinking.

Daniel - could you take a look at this as well?
Attachment #197824 - Flags: superreview?(dveditz)
Attachment #197824 - Flags: review?(benjamin)
Comment on attachment 197824 [details] [diff] [review]
patch

sr=dveditz

I flop/flip about every 30 seconds whether nsXPITriggerInfo ought to treat ""
and null the same. This patch is good, it works regardless of what we decide in
xpinstall.
Attachment #197824 - Flags: superreview?(dveditz) → superreview+
Attachment #197824 - Flags: review?(benjamin) → review+
Checked in on trunk

Checking in mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in;
/cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v  <--
 nsExtensionManager.js.in
new revision: 1.159; previous revision: 1.158
done
Checking in mozilla/toolkit/mozapps/extensions/content/update.js;
/cvsroot/mozilla/toolkit/mozapps/extensions/content/update.js,v  <--  update.js
new revision: 1.20; previous revision: 1.19
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 197824 [details] [diff] [review]
patch

please land this on the branch along with bug 306478. thanks.
Attachment #197824 - Flags: approval1.8b5+
Flags: blocking1.8b5+
Checked in along with the patch in bug 306478
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: