Closed Bug 791816 Opened 12 years ago Closed 12 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)
https://hg.mozilla.org/integration/mozilla-inbound/rev/9aa942155c05
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
https://hg.mozilla.org/mozilla-central/rev/0674f4f1703a
https://hg.mozilla.org/releases/mozilla-aurora/rev/c7a68455c717
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: