Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339178

Summary: IOException when we try to acquire a lock in a read only area
Product: [Eclipse Project] Equinox Reporter: Ian Bull <irbull>
Component: p2Assignee: Ian Bull <irbull>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse
Version: unspecified   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch v1
none
mylyn/context/zip none

Description Ian Bull CLA 2011-03-08 04:05:45 EST
When we try to acquire the artifact repository lock in a read only area, we get an IOException.  We need to handle this case.
Comment 1 Ian Bull CLA 2011-03-08 14:52:05 EST
Created attachment 190686 [details]
Patch v1

This patch now checks if the location is 'read only' and sets the appropriate flag. If the location is read only, then we assume the area can't be locked, and we don't try -- same thing we do for a repository that cannot be modified.
Comment 2 Ian Bull CLA 2011-03-08 14:52:08 EST
Created attachment 190687 [details]
mylyn/context/zip
Comment 3 Ian Bull CLA 2011-03-08 15:15:41 EST
I've released this fix to head.