Modify

Opened 6 years ago

Closed 6 years ago

#988 closed Bug (fixed)

Cannot write covers (thx Thierry Lejealle)

Reported by: bflorat Owned by: bflorat
Priority: 8, high Milestone: 1.5.1
Component: Functional Version: 1.5
Keywords: Cc:
Regression ?:

Description (last modified by bflorat)

Under windows, in some cases (probably when using special directories /desktop.ini), one cannot write covers to the disk

Technical: check http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4939819
Fix: don't use the java.io.File.canWrite() method, catch IOException instead

Note that this workaround should become useless from upcoming 1.5.1 as we removed every canWrite() checks.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by bflorat

  • Description modified (diff)
  • Status changed from new to assigned

Update

We finally reproduced the issue. The problem doesn't come from the use of desktop.ini but from the read only attribute.
Note 100% sure but apparently, the Properties / Read only option on a directory from Windows Explorer doesn't apply Read-only attribute on the directory but on its files only.
(Successfully tested) workaround : open a console (Start-> execute -> "cmd") and type

attrib -r <the directory>

Note that this workaround should become useless from upcoming 1.5.1 as we removed every canWrite() checks.

comment:2 Changed 6 years ago by bflorat

  • Resolution set to fixed
  • Status changed from assigned to closed

Applied against 1.5 and trunk

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.