Closed Bug 711717 Opened 13 years ago Closed 12 years ago

Expose manifest errors during app installation

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cvan, Assigned: spasovski)

References

Details

https://myapps.mozillalabs.com/getmanifest was timing out, as a result it was taking up to 1 min to show "couldn't retrieve application manifest from network" errors. Upon subsequent attempts I was getting "502 Bad Gateway" errors. If we can't verify the manifest fast enough, we show first indicate status (perhaps by adding a loading throbber near the "Install App" button) and throw an error as soon as possible. As is, app installation just looks broken.
Blocks: 710074
Priority: -- → P2
Blocks: 718560
No longer blocks: 710074
Sounds good.  Potch is redoing these now in bug 734435
Assignee: nobody → thepotch
Blocks: 735054
No longer blocks: 718560
We used to handle many error cases (https://github.com/mozilla/zamboni/blob/master/./media/js/zamboni/apps.js#L48) but now we don't (https://github.com/mozilla/zamboni/blob/master/./media/js/mkt/apps.js). This bug is to expose those errors.
Assignee: thepotch → dspasovski
Summary: Show status if app installation times out → Expose manifest errors during app installation
this might be a good opportunity to activate JS tests for mkt. Having tests to cover our navigator.mozApps abstraction is really important, especially for error handling. These were the amo tests that can be copied over: https://github.com/mozilla/zamboni/blob/master/media/js/zamboni/tests/apps_tests.js
done: https://github.com/mozilla/zamboni/commit/f947955

@kumar: I will have to address the tests after Apr. 26th since they may need a slight rework (new error codes and no existing qunit tests).
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Let us show more details about validation failures. http://cl.ly/1A1L032d3W0C0P0m1M0H is not very useful. Thanks!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
We don't have access to more detailed errors - you'd have to open a bug in WebRT; we are displaying the values returned by the mozApps.install() function. Our translations are here: https://github.com/mozilla/zamboni/commit/f947955#L2R45
Status: REOPENED → RESOLVED
Closed: 12 years ago12 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.