Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336364 - Various problems with parent decorator
Summary: Various problems with parent decorator
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-02-04 10:47 EST 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-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.