Closed
Bug 562303
Opened 15 years ago
Closed 15 years ago
Wrong extension signature causes install from local file to fail silently
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla2.0b1
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: jwkbugzilla, Unassigned)
References
Details
(Whiteboard: [rewrite])
Attachments
(2 files)
I was trying to install a version of Adblock Plus with a slightly modified install.rdf file and installation seemingly didn't do anything whatsoever. Error Console showed the reason:
Signature Verification Error: the signature on install.rdf is invalid because the MANIFEST.MF file does not contain a valid hash of the file being verified.
Error: ERROR addons.manager: Exception calling provider.getInstallForURL: Error: XPI is incorrectly signed
Shouldn't this produce some user-visible error? I don't think that we want the user to be able to install such an add-on but an error message would be useful if the download was corrupted by anti-virus software for example.
Comment 1•15 years ago
|
||
Wladimir, do you have an example of that XPI and could you attach it on that bug?
This bug depends on bug 552965 IMO.
Depends on: 552965
Reporter | ||
Comment 2•15 years ago
|
||
Correctly signed XPI file - this one should show "Wladimir Palant" as author.
Reporter | ||
Comment 3•15 years ago
|
||
This has the same signature as the previous XPI file but some whitespace modification in install.rdf - the signature doesn't match.
Reporter | ||
Comment 4•15 years ago
|
||
Actually, when installing from the web I get an error message:
The download of https://bug562303.bugzilla.mozilla.org/attachment.cgi?id=442047 failed: -3
With a file from your hard drive not even this (unhelpful) message is shown.
Comment 5•15 years ago
|
||
Do you eventually see bug 562302? Does a new profile or removing the extensions.sqlite file help?
Reporter | ||
Comment 6•15 years ago
|
||
No, the profile is brand new. And I can install extensions - it's only those with invalid signature that fail.
Comment 7•15 years ago
|
||
Hmm, for local files, it seems the API sends no events until after its successfully loaded the manifest (and a bunch of other stuff). So the UI doesn't know anything has actually happened, let alone an error has occurred.
Comment 8•15 years ago
|
||
Certainly the poor error message is bug 552965, the total lack of errors for local installs is something new though
Priority: -- → P2
Updated•15 years ago
|
blocking2.0: --- → beta1+
Summary: Wrong extension signature causes install to fail silently → Wrong extension signature causes install from local file to fail silently
Updated•15 years ago
|
blocking2.0: beta1+ → final+
Comment 9•15 years ago
|
||
Fixed by the patch in bug 570200
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
Updated•15 years ago
|
Target Milestone: mozilla1.9.3a5 → mozilla1.9.3
Comment 10•15 years ago
|
||
Given the automated tests it looks to be stable enough to call it out as verified fixed.
Status: RESOLVED → VERIFIED
Target Milestone: mozilla1.9.3 → mozilla1.9.3a6
You need to log in
before you can comment on or make changes to this bug.
Description
•