Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343906 - Unable to link to cloned git repository
Summary: Unable to link to cloned git repository
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-04-26 16:37 EDT by John Arthorne CLA
Modified: 2011-09-01 11:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-04-26 16:37:33 EDT
I20110426-0200

I was using a fresh server install from this build, not a self-hosting workspace. Steps:

1) Unzip server
2) double-click eclipse.exe to start it
3) Go to http://localhost:8080/git-clone.html
4) Clone http://git.eclipse.org/c/e4/org.eclipse.e4.deeplink.git/
5) Click the "Link Repository" action.

403 error occurs because I am not allowed to link a project at that location.

message: "Unable to load http://localhost:8080/workspace/A status:403"
responseText: "{"Severity":"Error","Message":"Cannot link to server path","HttpCode":403,"Code":0}"
stack: "Error: Unable to load http://localhost:8080/workspace/A status:403↵ at Object.resHandle (http://l…"
status: 403
Comment 1 John Arthorne CLA 2011-04-26 16:46:21 EDT
Running props on the console I can see:

 org.eclipse.orion.server.core.userArea = C:\temp\orion\eclipse\serverworkspace\.metadata\.plugins\org.eclipse.orion.server.core\userArea


However org.eclipse.orion.server.core.allowedPathPrefixes is undefined.
Comment 2 John Arthorne CLA 2011-04-26 16:49:48 EDT
The problem is in WorkspaceResourceHandler#isAllowedLinkDestination. if the allowedPathPrefixes is undefined, it just returns without checking the user area.