Closed Bug 791816 Opened 7 years ago Closed 7 years ago

[DeviceStorage] File overwrite on b2g device

Categories

(Firefox OS Graveyard :: General, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)

RESOLVED FIXED
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: onecyrenus, Assigned: dougt)

Details

Attachments

(1 file)

Got an "Unknown" error while trying to write to a file on the sdcard which was already present. 

Possibly we would want a separate error case for this scenario.

I would venture that we should check if a file exists prior to attempting to write, and if it does exist we through "already exists" error or something like that.

Or maybe would be better to write, catch the error, and then verify if the file already exists.  Probably easier on the hard drive.
Assignee: nobody → doug.turner
blocking-basecamp: --- → ?
Doug, not sure how important this is exactly, please re-nom if its not critical.
blocking-basecamp: ? → +
Attached patch patch v.1Splinter Review
Attachment #670149 - Flags: review?(jonas)
One of the patches in this push caused Windows mochitest-2 failures. Backed out.
https://hg.mozilla.org/integration/mozilla-inbound/rev/91616129b892

https://tbpl.mozilla.org/php/getParsedLog.php?id=16083979&tree=Mozilla-Inbound

2054 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/devicestorage/test/test_dotdot.html | Error must be SecurityError
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.