Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » workspace path not writeable by current user
workspace path not writeable by current user [message #1869435] Fri, 16 August 2024 12:53 Go to next message
Andy Wittchen is currently offline Andy WittchenFriend
Messages: 5
Registered: August 2024
Junior Member
Hi,
i work for a school where eclipse is used during education for a long time. It was always possible to open workspace on a network-folder like user home.
Now when I start eclipse and want to open workspace there, then comes "The path is not writable by the current user".
I think it could be a security preference from the new eclipse or a java security problem.
Does anybody have an idea what happened and what i can do because the students have to work on the server during exams.
Regards Andy
Re: workspace path not writeable by current user [message #1869612 is a reply to message #1869435] Mon, 19 August 2024 06:18 Go to previous messageGo to next message
Andy Wittchen is currently offline Andy WittchenFriend
Messages: 5
Registered: August 2024
Junior Member
Hi,
first some details. The last release we had before this problem was 2021-12. Now with release 2024-06 its not possible to choose workspace on this network drive, but if i change the shortcut from ....eclipse.exe to ....eclipse.exe -data L:\test (where L: is the home drive) and eclipse can write on it. But if i choose switch workspace to another folder on this drive, it's still the same "path not writable by current user"?!
Regards Andy
Re: workspace path not writeable by current user [message #1869615 is a reply to message #1869612] Mon, 19 August 2024 07:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
The logic was changed during the 2024-03 release cycle and now calls this method to test:

https://github.com/eclipse-platform/eclipse.platform.ui/blob/e3628a3a67c44771465d7d317b3424920c425090/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java#L491-L504

I suggest you open an issue here ASAP:

https://github.com/eclipse-platform/eclipse.platform.ui/issues

In the ideal world, you would write a small class with exactly the method above copied into it and test the behavior that you see for your path.

For me I tried this:
package test;

import java.nio.file.Files;
import java.nio.file.Path;

public class Test {

	public static void main(String[] args) {
		isWritable(Path.of("D:\\test"));
	}

	private static boolean isWritable(Path path) {
		if (Files.exists(path)) {
			return Files.isWritable(path);
		}
		Path parent = path.getParent();
		if (parent != null) {
			return isWritable(parent);
		}
		return true;
	}
}
And apparently I do have write access to D:\.

Does it help in your case if you make sure the folder is created first?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: workspace path not writeable by current user [message #1869642 is a reply to message #1869615] Tue, 20 August 2024 13:37 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4507
Registered: July 2009
Senior Member

Andy, I don't see an Issue opened so far, and I can't emphasize how correct Ed is in asking you to open one ASAP if you want it changed in time for the 2024-09 release.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: workspace path not writeable by current user [message #1869750 is a reply to message #1869615] Fri, 23 August 2024 13:55 Go to previous messageGo to next message
Andy Wittchen is currently offline Andy WittchenFriend
Messages: 5
Registered: August 2024
Junior Member
Dear Ed,

the problem is that the workspace has to be not only in the home share, but in the subfolder of the current exam name. Only files under this folder will be saved in the teachers share during and after exam time. So i dont know before, how the exactly path name has to be.
I dont know, how i'll handle that.
I think we'll open an issue on monday if that is not too late for the next release.
Happe weekend and many thanks for your help.
Regards Andy

[Updated on: Fri, 23 August 2024 14:10]

Report message to a moderator

Re: workspace path not writeable by current user [message #1869753 is a reply to message #1869642] Fri, 23 August 2024 14:00 Go to previous messageGo to next message
Andy Wittchen is currently offline Andy WittchenFriend
Messages: 5
Registered: August 2024
Junior Member
Hi Nitin,
thanks for your feedback. I'll talk with the teacher about that on monday.
Have a nice weekend.
Andy
Re: workspace path not writeable by current user [message #1870449 is a reply to message #1869615] Wed, 28 August 2024 12:40 Go to previous messageGo to next message
Andy Wittchen is currently offline Andy WittchenFriend
Messages: 5
Registered: August 2024
Junior Member
Dear Ed,

how this is going on when the team change s.th. like in this workspace dialog bug? Can I now install the 2024-09 release when it's finished and the change is already integrated?
Regards Andy
Re: workspace path not writeable by current user [message #1870452 is a reply to message #1870449] Wed, 28 August 2024 13:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
The packages with the fix will be available here September 11th at 4:00PM CET.

https://www.eclipse.org/downloads/packages/

The Platform does nightly builds

https://download.eclipse.org/eclipse/downloads/

So there will be a new build like this one (with a newer date of course):

https://download.eclipse.org/eclipse/downloads/drops4/I20240828-0610/

And that will have a new download like this one:

https://download.eclipse.org/eclipse/downloads/drops4/I20240828-0610/download.php?dropFile=eclipse-SDK-I20240828-0610-win32-x86_64.zip


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: workspace path not writeable by current user [message #1871115 is a reply to message #1870452] Mon, 16 September 2024 09:56 Go to previous messageGo to next message
Paul Brett is currently offline Paul BrettFriend
Messages: 1
Registered: September 2024
Junior Member
It seems this has yet to be fixed. I download one of the latest drops:

https://download.eclipse.org/eclipse/downloads/drops4/I20240914-1800/

...and it still shows the same issue.
Re: workspace path not writeable by current user [message #1871121 is a reply to message #1871115] Mon, 16 September 2024 14:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
As I understand it, the dialog will show the problem message but the OK button is not disabled.

None of the developer other than me look here, so this is not the best place to ask about it. The issue that was opened is a good place.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: workspace path not writeable by current user [message #1873450 is a reply to message #1871121] Wed, 18 December 2024 06:47 Go to previous message
baknerstive44 baknerstive44 is currently offline baknerstive44 baknerstive44Friend
Messages: 1
Registered: December 2024
Junior Member
It seems this has yet to be fixed. I download one of the latest drops:
Previous Topic:Install Photran Plugin
Next Topic:Did anyone else get this error on install?
Goto Forum:
  


Current Time: Wed Jan 15 14:07:53 GMT 2025

Powered by FUDForum. Page generated in 0.11590 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top