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

Bug 428443

Summary: Deleting a project on project nav still shows error "File not found: <project name>"
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe, ken_walker
Version: 5.0Flags: gheorghe: review+
ken_walker: review+
Target Milestone: 5.0 RC3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2014-02-18 10:34:14 EST

    
Comment 1 Silenio Quarti CLA 2014-02-18 10:36:37 EST
1) Open edit page
2) Create a basic project. It should show in the project nav and be selected. Do
3) Select "Edit -> Delete" menu

The project is deleted, but you get a warning saying: "File not found: <project path>"
Comment 2 Silenio Quarti CLA 2014-02-18 11:01:35 EST
The problem happens because the parent of the project item has the same ContentLocation of the project item.  The project nav detects that the tree root is being deleted and tries change the tree root to the parent item which fails because it has been deleted (same ContentLocation).   The fix is to detect that and change the tree root to the workspace instead.

Fix is here

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?h=silenio/bug428443&id=46009301bbd35362626ef0a41bf978c718f16c62
Comment 4 Silenio Quarti CLA 2014-02-18 17:55:03 EST
This works in beta3/orion, but still fails on qa.
Comment 5 Silenio Quarti CLA 2014-02-18 19:58:42 EST
The problem still happens in QA because the project.Id is not the same as the project.Name (different workspace shape?).

Fix

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?h=silenio/bug428443_1&id=d3bbf30d44c6ba52b94cc1ee52e713ae4be6a668