Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335518 - link folder permission error message is obscure
Summary: link folder permission error message is obscure
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 17:15 EST by John J. Barton CLA
Modified: 2016-02-24 10:37 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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."