Open Bug 437216 Opened 16 years ago Updated 2 years ago

Add support of NTFS permissions in nsLocalFile::IsWritable

Categories

(Core :: XPCOM, enhancement)

x86
Windows XP
enhancement

Tracking

()

People

(Reporter: ronny.perinke, Unassigned)

References

()

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.15pre) Gecko/20080419 Firefox/2.0.0.15pre (Sephiroth/SSE2)
Build Identifier: 

IsWritable only checks whether or not the read-only attribute is set. But on NTFS, there could be the situation where it's not set and the user has no right to write to a file or create files in the directory.

I wrote a little example how to retrieve the effective rights for the user that runs the application (owner of the calling thread or process).

Reproducible: Always
Status: UNCONFIRMED → NEW
Ever confirmed: true
Jim, is this something you might be able to take? We currently have all sorts of nasty hacks in the extension manager to verify that we can add files to a directory because this API doesn't work correctly at the moment.
Assignee: nobody → jmathies
Finally getting back to this.
Status: NEW → ASSIGNED
Attached patch patch (obsolete) — Splinter Review
Attached patch patchSplinter Review
some last minute cleanup totally broke that last patch. pushed to try, I might try to work up a test as well. since we don't use ntfs on our test slaves it wouldn't run normally but devs would still be able to test.
Attachment #590226 - Attachment is obsolete: true
Assignee: jmathies → nobody
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
No assignee, updating the status.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: