Closed
Bug 1213860
Opened 9 years ago
Closed 9 years ago
Can't install add-on on FxOS via reviewer tools
Categories
(Marketplace Graveyard :: Reviewer Tools, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: eviljeff, Assigned: kngo)
References
Details
Attachments
(1 file)
242.51 KB,
text/plain
|
Details |
Install fails via reviewer tools. might be a one-off, but I can't attempt to reproduce due to bug 1213820. Logging in any case.
Reporter | ||
Comment 1•9 years ago
|
||
(noisy) adb log.
Updated•9 years ago
|
Priority: -- → P1
Updated•9 years ago
|
Assignee: nobody → kngo
Reporter | ||
Comment 2•9 years ago
|
||
once the patch for bug 1213919 lands I think (hope) this will be fixed.
Depends on: 1213919
Assignee | ||
Comment 3•9 years ago
|
||
How about now?
Reporter | ||
Comment 4•9 years ago
|
||
No, though I do get a different error: E/GeckoConsole( 316): [JavaScript Error: "Error installing packaged app from: https://marketplace.firefox.com: MANIFEST_URL_ERROR" {file: "resource://gre/modules/Webapps.jsm" line: 2598}] D/System ( 2199): Content JS GROUP: action ADDON_INSTALL__INSTALL_ERROR @ 11:53:5 - this is after switching to dogfood-latest (nightly-ish) channel, build id 20151015103418.
Reporter | ||
Comment 5•9 years ago
|
||
there isn't enough logging to say for certain what its trying to install - the view manifest link 500's (e.g. https://marketplace.firefox.com/extension/1ee2f3ed13e842fab67afed75492333b/manifest.json on https://marketplace.firefox.com/content/addon/review/back-button-4)
Comment 6•9 years ago
|
||
https://marketplace.firefox.com/extension/1ee2f3ed13e842fab67afed75492333b/manifest.json is 404 because it's the public mini-manifest URL. The reviewer mini-manifest URL is different, it's per version and the prefix is /extension/reviewers/. I'm not sure what's causing your issue, but in any case the whitelist to pick reviewer certs in Gecko seems wrong to me: https://dxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#1068 https://dxr.mozilla.org/mozilla-central/source/dom/apps/Webapps.jsm#3746 Instead of whitelisting "/reviewers/,/content/addon/review/" it should whitelist "/reviewers/,/extension/reviewers/", since it's the manifest that needs to be whitelisted, not the install origin.
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Mathieu Pillard [:mat] from comment #6) > I'm not sure what's causing your issue, but in any case the whitelist to > pick reviewer certs in Gecko seems wrong to me: > https://dxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#1068 > https://dxr.mozilla.org/mozilla-central/source/dom/apps/Webapps.jsm#3746 > > Instead of whitelisting "/reviewers/,/content/addon/review/" it should > whitelist "/reviewers/,/extension/reviewers/", since it's the manifest that > needs to be whitelisted, not the install origin. Ah. That could be it.
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Andrew Williamson [:eviljeff] from comment #7) > (In reply to Mathieu Pillard [:mat] from comment #6) > > I'm not sure what's causing your issue, but in any case the whitelist to > > pick reviewer certs in Gecko seems wrong to me: > > https://dxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#1068 > > https://dxr.mozilla.org/mozilla-central/source/dom/apps/Webapps.jsm#3746 > > > > Instead of whitelisting "/reviewers/,/content/addon/review/" it should > > whitelist "/reviewers/,/extension/reviewers/", since it's the manifest that > > needs to be whitelisted, not the install origin. > > Ah. That could be it. I still get MANIFEST_URL_ERROR after adding `,/extension/reviewers/` to the end of the pref value. Looking at the source it indicates one of the status response codes (for the manifest or the package) isn't 200 (or 304). The three instances of `sendError("MANIFEST_URL_ERROR")` are all connected to the response not being 200, as far as I can see.
Assignee | ||
Comment 9•9 years ago
|
||
This bug might have two layers. One issue is that devhub login cookie expires when browser is closed. Need to have the frontend ping devhub to see if has a user session active, and force log out if it doesn't for content tools. No session cookie means reviewer can't access manifest. The second issue is unknown. Needs investigation.
Comment 10•9 years ago
|
||
The second issue is that the whitelist is wrong in platform (bug 1213919 was re-opened for this). AFAIK once those 2 issues were worked around Andrew was able to successfully install an add-on from reviewer tools.
Assignee | ||
Comment 11•9 years ago
|
||
https://github.com/mozilla/marketplace-content-tools/pull/68 https://github.com/mozilla/zamboni/pull/3406
Assignee | ||
Comment 12•9 years ago
|
||
STR: 1. Be logged in on Developer Hub. 2. Go to Add-on Review Detail page on Content Tools. 3. You should be able to install (with the whitelist working) and not see any prompt to log in. 4. Log out of Developer Hub. 5. Go back to Content Tools. Expected: Reviewer is asked to log in again at the top of the page. Log in works. Prompt disappears after log in. User is now also logged into Developer Hub.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•