Closed Bug 1233012 Opened 8 years ago Closed 8 years ago

There is no error message if you don't put an actual local blobfree zip file

Categories

(Firefox OS Graveyard :: B2gInstaller, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: gerard-majax)

References

Details

Attachments

(3 files, 1 obsolete file)

STR
1. Select a local random file (like a text file)
2. Click on "Flash device"

Results
You're stuck at the "Extracting Build" step. There is no error message visible from the UI. This can be confusing for a user that is not used to the addon and the type of build to flash.

However, in the WebConsole, with the debug traces on, you get:
> Extracting blob free distribution: /path/to/my/wrong/file.txt about.js:859:3
> Dealing with /path/to/my/wrong/file.txt about.js:617:3
> Extracting blob free content: undefined about.js:865:5
> TypeError: invalid path component
> Stack trace:
> join@resource://gre/modules/osfile/ospath_unix.jsm:90:1
> extractBlobFreeContent@chrome://b2g-installer/content/about.js:660:36
> distributionStep/<@chrome://b2g-installer/content/about.js:866:12
> promise callback*distributionStep@chrome://b2g-installer/content/about.js:863:10
> step/<@chrome://b2g-installer/content/about.js:1140:12
> promise callback*install@chrome://b2g-installer/content/about.js:1181:3
> EventListener.handleEvent*load@chrome://b2g-installer/content/about.js:1290:1
> EventListener.handleEvent*@chrome://b2g-installer/content/about.js:1283:1
>  about.js:904:5
> 
> Installing failed about.js:1190:7
> 
> undefined about.js:1191:7
Attached file PR (obsolete) —
Assignee: nobody → lissyx+mozillians
Status: NEW → ASSIGNED
(In reply to Alexandre LISSY :gerard-majax from comment #3)
> Created attachment 8714841 [details]
> Capture du 2016-02-02 16-58-00.png

That matches the use reported in this bug: invalid blobfree distribution.
(In reply to Alexandre LISSY :gerard-majax from comment #2)
> Created attachment 8714840 [details]
> Capture du 2016-02-02 16-57-42.png

Also makes error reporting better when anything fails in the chain.
Attachment #8714803 - Flags: review?(dale)
Same PR with the proper bug number
Attachment #8714803 - Attachment is obsolete: true
Attachment #8714803 - Flags: review?(dale)
Attachment #8714919 - Flags: review?(dale)
https://github.com/mozilla-b2g/b2g-installer/commit/372c13b06b21ba92a9c8d1a785971e9690d9f24a
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: