Closed Bug 655143 Opened 14 years ago Closed 14 years ago

Firefox 3.6.17 or 3.5.19 Major Updates to 4.0.1 with incompatible extensions are immediately failing extension search

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: abillings, Assigned: andy+bugzilla)

References

Details

(Whiteboard: [post-freeze+])

Attachments

(1 file)

Attached image Failure Dialog
If a user is running Firefox 3.5.19 or 3.6.17 with extensions incompatible with Firefox 4.0.1, they are warned that they are running incompatible extensions. On Firefox 4.0.1 first run, the "Firefox Update" dialog will tell them again and the user can check for updates to the extensions. When this happens, the dialog, for a half-second, has the "checking..." dialog saying it may take a few minutes and then IMMEDIATELY returns the error dialog stating, "Some problems were encountered when trying to find updates". This looks to be a server side issue and can be seen on all operating systems (I checked Windows XP, Ubuntu 10.04, and OS X 10.6). Steps to Reproduce 1. Install Firefox 3.6.17 2. Install Live HTTP Headers (which is not 4.0.1 compatible) in a clean profile 3. Launch with the profile from step 2 after restart 4. Check for Updates and go through update process 5. On first run for Firefox 4.0.1, tell it to check for updates when warning of incompatible extensions
Here is Stephen's screencast: http://screencast.com/t/41h0hcH7MxH
(In reply to comment #2) > Here's the URL that's failing to yields results in its XML output: > > https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id={8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}&version=0.16&maxAppVersion=3.6.*&status=userEnabled,incompatible&appID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&appVersion=4.0.1&appOS=WINNT&appABI=x86-msvc&locale=en-US&currentAppVersion=4.0.1&updateType=99 ...which makes the Add-ons Manager throw: Warning: WARN addons.updates: Error: Missing updates property for urn:mozilla:extension:{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a} Source File: resource://gre/modules/AddonUpdateChecker.jsm Line: 472 to the Error Console.
Severity: normal → critical
OS: Mac OS X → All
Hardware: x86 → All
Severity: critical → normal
OS: All → Mac OS X
Hardware: All → x86
Severity: normal → critical
OS: Mac OS X → All
Hardware: x86 → All
Severity: critical → normal
OS: All → Mac OS X
Hardware: All → x86
Ok, this is caused by an inadvertent change that I made to update checks in Firefox 4. The update.rdf generally looks something like this: <?xml version="1.0" encoding="UTF-8"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <RDF:Description about="urn:mozilla:extension:foobar@developer.mozilla.org"> <em:updates> <RDF:Seq> <!-- updates in here --> </RDF:Seq> </em:updates> </RDF:Description> </RDF:RDF> In Firefox 3.6 if the <em:updates> property didn't exist (i.e. if it was basically a blank RDF document) then it was fine, it just meant no updates were available and a warning in the console. In Firefox 4 this changed to being a failure to check for updates. We can trivially patch this in Firefox, but if you want to fix it quicker then presumably AMO's update check script could also be patched to output the extra bits of info so the add-ons manager doesn't complain.
What would the AMO change look like? no data in RDF:Seq block? Can the Seq block be missing?
We should probably fix this in Firefox 5, nominating. If this becomes a "fix the server" bug we'll need a separate "fix the client" bug.
(In reply to comment #5) > What would the AMO change look like? no data in RDF:Seq block? Can the Seq > block be missing? The RDF:Seq block would have to be present (if the em:updates property isn't a container then we throw an error), but it can be empty.
Should a completely invalid ID, still return? <?xml version="1.0" encoding="UTF-8"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </RDF:RDF>
(In reply to comment #8) > Should a completely invalid ID, still return? > > <?xml version="1.0" encoding="UTF-8"?> > > <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:em="http://www.mozilla.org/2004/em-rdf#"> > </RDF:RDF> It's a valid response and Firefox should take it to mean that AMO doesn't have any updates available for that invalid ID.
Filed bug 655162 for the client fix. Leaving this in case you want to consider a server fix
Blocks: 655162
Assignee: nobody → amckay
Whiteboard: [post-freeze+]
Target Milestone: --- → 6.0.9
Well, I don't think we want to do yet another updater for Firefox 4 just for this, so I'd guess we'll need a server fix so update to FF4 works fine.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: