Closed
Bug 1144711
Opened 10 years ago
Closed 10 years ago
return 404 for version update requests on unlisted addons
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
2015-05
People
(Reporter: magopian, Assigned: magopian)
References
Details
Requests to the "version update" service should return a 404 for unlisted addons.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Target Milestone: 2015-04 → 2015-05
Comment 3•10 years ago
|
||
Not sure where we should see that 404. Mathieu, can you please give us some more detailed steps?
Flags: needinfo?(mathieu)
Assignee | ||
Comment 4•10 years ago
|
||
I don't know if you can test this (the update checks) on -dev or stage?
I think there's an about:config setting to configure Firefox to go check the latest versions of an addon on a given url.
The STR (for -dev):
1/ upload an unlisted add-on on -dev
2/ install it manually (there's no public pages, but you should be able to download it manually from the devhub pages)
3/ upload a newer version of this add-on on -dev (don't install it manually)
4/ have firefox check for updates on -dev, and verify that it doesn't find this new version
If you do those exact same steps with a listed addon, Firefox should automatically detect the new version and install it.
Flags: needinfo?(mathieu)
Comment 5•10 years ago
|
||
I have found the setting it is called extensions.update.url. Its original value is: https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%
I have modified that to
https://versioncheck.addons-dev.allizom.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%
But when I try to force an update to an add-on it doesn't work. I have tried with both an listed and an unlisted add-on with no success. I think that value should be something else, but I'm not sure how it should look.
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Sorry, got some %25 everywhere in this url, try this:
https://versioncheck-dev.allizom.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%
Comment 8•10 years ago
|
||
That works like a charm :)
I have tried with an normal public add-on and update is successful. For an unlisted add-on no updates are found.
Screencast: http://screencast.com/t/uUnqRD93
Closing bug.
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•