-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web-ext sign fails if last version uploaded via website was listed #877
Comments
Huh, that's odd. Thanks for the bug report. If it's convenient for you to reproduce this, could you attach a verbose log? |
Thanks. The response property |
@mstriemer do you think mozilla/addons#1637 would fix this? |
I think this is due to supporting listed and unlisted for the same add-on. It looks like a So I'm guessing web-ext needs to be updated to pass the channel flag when requested (or possibly just set it to unlisted unless it is called with |
Oh, hey, there is even a channel param for the API endpoint now. Thanks for the info. I'm not sure who will be able to work on supporting this in |
OK, so for other people hitting this, a temporary fix is to add The relevant object in the current code is here. To get it working on my system without rebuilding Before:
After:
A proper fix will require changes to both |
(And until there's a |
ok, glad to hear that worked! If you didn't want to modify the dist file, here is how to patch it with the sign-addon source:
^ Your local web-ext would then be using the patched |
Supporting listed add-ons from web-ext is tracked here: #804 |
|
Thanks for everyone's patience. Richard Bloor and I worked on documentation for this. Reference: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/web-ext_command_reference#web-ext_sign This feature is half baked so it's a little confusing, alas. If anyone has feedback on the documentation, let us know. |
Is this a bug or feature request?
Bug
What is the current behavior?
I have an add-on with both an unlisted and a listed version, the latter awaiting review. If the last version uploaded via the website was listed,
web-ext sign
fails with a generic "The WebExtension could not be signed". Using verbose mode and loading the validation URL, I can see that the underlying error is"applications.gecko.update_url" is not allowed for Mozilla-hosted add-ons.
.What is the expected or desired behavior?
Using
web-ext sign
should always create an unlisted version, regardless of the last-used mode on AMO. (See also: #804 for adding a separateweb-ext submit
.)Version information (for bug reports)
v7.7.2
4.4.4
1.8.1
The text was updated successfully, but these errors were encountered: