[DeviceStorage] File overwrite on b2g device

RESOLVED FIXED

Status

P3
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: onecyrenus, Assigned: dougt)

Tracking

unspecified
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

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

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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.
(Reporter)

Updated

6 years ago
Assignee: nobody → doug.turner
(Reporter)

Updated

6 years ago
blocking-basecamp: --- → ?

Comment 1

6 years ago
Doug, not sure how important this is exactly, please re-nom if its not critical.
blocking-basecamp: ? → +
(Assignee)

Comment 2

6 years ago
Created attachment 670149 [details] [diff] [review]
patch v.1
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
(Assignee)

Comment 5

6 years ago
https://hg.mozilla.org/mozilla-central/rev/0674f4f1703a
https://hg.mozilla.org/releases/mozilla-aurora/rev/c7a68455c717
Status: NEW → RESOLVED
Last Resolved: 6 years ago
status-firefox18: --- → fixed
status-firefox19: --- → fixed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.