Closed Bug 612649 Opened 14 years ago Closed 14 years ago

Add-on fails SHA check in Firefox 4 beta (passed in Firefox 3)

Categories

(Firefox :: Extension Compatibility, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 613568

People

(Reporter: matthew, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows NT 6.0; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Build Identifier: Mozilla/5.0 (Windows NT 6.0; rv:2.0b7) Gecko/20100101 Firefox/4.0b7

I have an extension which installs OK in Firefox 3.6. It's hosted on mozdev which redirects XPI downloads to one of a number of mirrors.

During testing for compatibility with Firefox 4 betas, I found that the installation of the XPI failed with the error "The add-on from wmlbrowser.mozdev.org could not be installed because it does not match the add-on Firefox expected".

Note that, although the extension is not yet labelled as compatible with FF4b7, the install doesn't get that far. The error console shows

Warning: WARN addons.xpi: Download failed: Downloaded file hash (05780a9117dade43a25a78ed4049998239047c44ed58bfb8b4cb3ebd372ad4ce) did not match provided hash (e52d9e020f2daceb197488b67fc2da01bf3d08778eda41a0a162722a3d48fe92)

The SHA hash or comparison seems to be going wrong somehow. I created a test page which links directly to one of the mirrors, in case the HTTP redirect was causing a problem, but the install fails in both cases.

Reproducible: Always

Steps to Reproduce:
1. In FF4b7, go to the provided URL and click "Install from mirrors". (Ensure Javascript is enabled.)
2. Click on "Allow" to the installation.
Actual Results:  
Firefox shows "The add-on from wmlbrowser.mozdev.org could not be installed because it does not match the add-on Firefox expected".

Expected Results:  
Firefox should report that the add-on is not compatible with the version of Firefox installed (or if extensions.checkCompatibility is false, it should install).
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.