Bug 235629 - Can't create the osgi.instance.area on a UNC drive
Summary: Can't create the osgi.instance.area on a UNC drive
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 236695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-04 11:57 EDT by Pascal Rapicault CLA
Modified: 2008-07-16 13:24 EDT (History)
3 users (show)

See Also:


Attachments
patch (1.25 KB, patch)
2008-06-04 15:05 EDT, Thomas Watson CLA
no flags Details | Diff
patch (3.61 KB, patch)
2008-06-04 18:47 EDT, Thomas Watson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2008-06-04 11:57:08 EDT
When my eclipse install is on a UNC drive, the creation of a workspace on a UNC drive fails saying that the location can't be locked or is in use.
Comment 1 Jeff McAffer CLA 2008-06-04 13:15:49 EDT
Interestsing.  I believe that Ben was running completely on a UNC drive (eclipse and workspace there). There were issues but not this one.  This was using Parallels on a Mac.
Comment 2 Thomas Watson CLA 2008-06-04 15:05:04 EDT
Created attachment 103624 [details]
patch

The fix to bug 95832 introduced this issue way back in 3.2.
Comment 3 Thomas Watson CLA 2008-06-04 15:10:57 EDT
(In reply to comment #1)
> Interestsing.  I believe that Ben was running completely on a UNC drive
> (eclipse and workspace there). There were issues but not this one.  This was
> using Parallels on a Mac.
> 

I suspect you may have some unexpected paths that get created for locking the workspace.  What ends up happening is we try to lock an incorrect file location.  for example if your workspace instance URL looks like this

//machine/data/ws

Then we end up creating a new file with the path /data/ws.  Depending on how you launched eclipse this path will give you inconsistent results.  For example if your user.dir = c:\eclipse then the workspace lock will be placed under c:\data\ws.  But if you launched eclipse from a UNC path then the user.dir will be something else and I'm not sure what you will get from a file with a path /data/ws, but I know it will be a path you do not want.
Comment 4 Thomas Watson CLA 2008-06-04 15:11:22 EDT
consider for 3.4.1
Comment 5 Thomas Watson CLA 2008-06-04 18:41:19 EDT
Accidentally marked this as FIXED.
Comment 6 Thomas Watson CLA 2008-06-04 18:47:45 EDT
Created attachment 103668 [details]
patch

There are a few other places broken.  For example, when we compute the configuration area based off the install area.
Comment 7 Thomas Watson CLA 2008-06-11 14:31:28 EDT
*** Bug 236695 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Watson CLA 2008-07-02 16:52:42 EDT
I released the patch to HEAD (3.5) under bug 239356.  Leaving this bug open to consider a fix in 3.4.1.
	

Comment 9 Thomas Watson CLA 2008-07-16 13:24:45 EDT
I released the patch to 3.4 maintenance branch.