views:

511

answers:

6

I am working on a new version of a firefox extension, but after releasing it, and incrementing the em:version in install.rdf and update.rdf, when I click "Find updates" Firefox reports that "No updates were found." When I run it with debugging on, the output in the console is actually identical to what I see when I don't put the update live.

It starts with RDFItemUpdater:checkForUpdates with all of the parameters, and returns with Addon Update Ended and status: 8.

I verified with McCoy tool that the extension is signed, and has the same Id as the old one, etc. I'm not sure what else to try. Any advice would be appreciated. This is with Firefox 3 (and the extension is marked as compatible with it... that didn't change).

+1  A: 

Make sure your update.rdf file is being served with an appropriate Content-Type, i.e. text/rdf, text/xml or application/xml+rdf

Gerald
Thanks for the tip... tried all 3 and I'm still getting the same result :(
tlianza
+1  A: 

If you've only recently changed update.rdf, maybe it's cached. Load it in the browser then Shift-Refresh.

Tried it - wasn't cached :(
tlianza
+1  A: 

here are some nice tips that helped me: https://developer.mozilla.org/en/Extension_Versioning,_Update_and_Compatibility

but, auto update function will not work if extension is marked "experimental".

homoludens
A: 

There are lots of things to mess up, one of which is installing an extension from AMO and expecting it to update when you change your update.rdf :)

Nickolay
Sorry for being dense... "AMO" stands for what?
tlianza
Sorry, I meant addons.mozilla.org. It is the common way to distribute add-ons.
Nickolay
+1  A: 

I'm having a similar issue, and think it's due to an invalid rdf file. Did you check that yours parsed with this tool? http://www.w3.org/RDF/Validator/

Shane N
Fixed my RDF file, but that didn't fix the issue. Did you ever reach a resolution, tlianza?
Shane N
Ah, finally got it working. I was using the wrong updater in FF. I was hitting tools->check for updates. Instead you have to do tools->add-ons->find updates.
Shane N
A: 

I was having the same problem. In my update.rdf, I had a wildcard in my minVersion attribute:

minVersion="3.0.*"

Removing the wildcard fixed the status 8:

minVersion="3.0"

The update works now (console shows status 1). This was using Firefox 3.0.18.

My guess is that status 8 means there was a problem understanding the contents of the file (not necessarily an RDF parsing problem). If your minVersion doesn't have a wildcard, maybe there's an invalid character hiding somewhere.

Jason