Issue Details (XML | Word | Printable)

Key: XADISK-101
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Nitin Verma
Reporter: Nitin Verma
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

For windows share directory, permission checks done using Java APIs are misleading.

Created: 17/Feb/12 06:57 PM   Updated: 17/Feb/12 06:58 PM
Component/s: filesystem
Affects Version/s: 1.2
Fix Version/s: None

Time Tracking:
Not Specified

Participants: Nitin Verma

 Description  « Hide

There is a problem with Windows Share and Java combination, in the File's canRead()/canWrite() APIs.

These APIs are returning true even if the particular file/directory does not expose that permission. This results in XDisk's permission checks, done during an operation itself, passing even if actual permissions don't exist. When XADisk proceeds to commit the changes, only then the lack of permissions result in exception. The XADisk instance would fail during commit and would make itself unavailable.

Workaround is to make sure to assign all needed permissions beforehand, when using windows share folders.

There are no comments yet on this issue.