Closed Bug 790492 Opened 12 years ago Closed 11 years ago

Showing installation failures on Firefox OS

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-02-28

People

(Reporter: krupa.mozbugs, Assigned: potch)

References

Details

(Whiteboard: [fireplace][uinits] c=mkt-consumer u=user p=2)

We need a graceful way to show installation failures within the marketplace app on Firefox OS. Right now, it is a lightbox which looks janky and hard to get rid of.

Examples of installation failures:
1. App manifest is invalid
2. remote host could not be reached
Is this something the marketplace does or the platform?  I assume the platform already has these built in.
No longer blocks: 782711
Pretty sure this is an FxOS bug...  Moving to entice discussion!
Component: Consumer Pages → General
Product: Marketplace → Boot2Gecko
Version: 1.0 → unspecified
Nope, not a b2g bug. What Krupa is probably talking about here is that if I get an error callback fired during installation of a web/packaged app, then I should produce "useful" error messages based on the error codes fired back from the mozapps API. If the error codes are insufficient for your needs, then file a platform bug in Core --> DOM: Apps.
Component: General → Consumer Pages
Product: Boot2Gecko → Marketplace
Version: unspecified → 1.0
How should this visually look?
Whiteboard: uiwanted
Priority: -- → P5
Krupa or Chris--could you post a screenshot of what it looks like now or tell us how to replicate?
Julien, I believe we already check for these installation failures on the FFOS side, no? Specifically:

> 1. App manifest is invalid
? 2. remote host could not be reached
Flags: needinfo?(felash)
Yep we do that already (that was Bug 816448). However the only "clear" error is displayed in logs.

Bug 837960 is about showing better errors but I doubt it will land for v1.
Flags: needinfo?(felash)
Whiteboard: uiwanted → [uinits][mwc] c=mkt-consumer u=user p=2
Target Milestone: --- → 2013-02-28
I propose we reuse the messages like we did in bug 840822. These are the error messages we currently have:

            case 'MKT_CANCELLED':
            case 'DENIED':
                msg = 'cancelled';
                break;
            case 'MANIFEST_URL_ERROR':
                errSummary = gettext('The manifest could not be found at the given location.');
                break;
            case 'NETWORK_ERROR':
                errSummary = gettext('App host could not be reached.');
                break;
            case 'MANIFEST_PARSE_ERROR':
                errSummary = gettext('App manifest is unparsable.');
                break;
            case 'INVALID_MANIFEST':
                errSummary = gettext('App manifest is invalid.');
                break;
            // Marketplace specific error codes.
            case 'MKT_SERVER_ERROR':
                errSummary = gettext('Internal server error.');
                break;
            case 'MKT_INSTALL_ERROR':
                errSummary = gettext('Internal server error on app installation.');
                break;
            default:
                errSummary = gettext('Install failed. Please try again later.');
                break;

Maureen, any copy changes you want to suggest?
Well only 'Install failed. Please try again later.' is understandable to the average consumer (I had never heard of a manifest before I started working on the Marketplace :) Could we use that for all of them?
See Bug 816448 comment 15 what we currently have in FxOS.
Assignee: nobody → thepotch
Priority: P5 → P3
Whiteboard: [uinits][mwc] c=mkt-consumer u=user p=2 → [fireplace][uinits][mwc] c=mkt-consumer u=user p=2
Whiteboard: [fireplace][uinits][mwc] c=mkt-consumer u=user p=2 → [fireplace][uinits] c=mkt-consumer u=user p=2
Status: NEW → ASSIGNED
https://github.com/mozilla/fireplace/commit/336ae8f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 859511
You need to log in before you can comment on or make changes to this bug.