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

Bug 335518

Summary: link folder permission error message is obscure
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, mamacdon
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John J. Barton CLA 2011-01-26 17:15:51 EST
1. in your eclipse.ini, add below -vmargs
-Dorg.eclipse.e4.webide.server.allowedPathPrefixes=C:\Users\johnjbarton\firebug\fbug\fbug

2. start server and client, use Link Folder icon with any name and path.
Expected: A message that helps you figure out what to do next.
Actual: Error: Unable to load http://localhost:8080/workspace/A status:403

A better message would be:
C:\Users\johnjbarton\firebug\fbug\fbug is not accessible via any path on JVM args
org.eclipse.orion.server.core.allowedPathPrefixes
Comment 1 Boris Bokowski CLA 2011-01-26 17:17:25 EST
The common problem is going to be that the allowedPathPrefixes option is missing completely, or mis-spelled. Mentioning the name of the setting in the error dialog would indeed be helpful.
Comment 2 John J. Barton CLA 2011-01-26 17:28:26 EST
see also https://bugs.eclipse.org/bugs/show_bug.cgi?id=335478
Comment 3 John Arthorne CLA 2011-06-27 15:32:09 EDT
http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=212f75592fa9afc28fa71267f43aa90258d32a94

http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=34b3a1dc72bbedd8dfb529ae53118f55848b8495

The new message looks like this:

"Cannot link to server path c:\foo. Use the orion.file.allowedPaths property to specify server locations where content can be linked."