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

Bug 336364

Summary: Various problems with parent decorator
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-02-04 10:47:32 EST
The code that inserts parent links for file/directory representations has a few bugs:

- The decorator is registered by the workspace servlet, but decorates both the file and workspace responses. If the workspace servlet is never used, then the parent decoration doesn't occur
- The location of parent directories does not end in "/", like directory URLs should
- If there is a file at the root of the workspace, the parent decorator tries to replace the file name with the project name. Since there is no project, it sets the file name to null.
Comment 1 John Arthorne CLA 2011-02-04 11:01:36 EST
Fix pushed.