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

Bug 459599

Summary: remembered last edited file should be cleared if there's a problem loading it
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ssjherman
Version: unspecified   
Target Milestone: 9.0   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2015-02-10 14:33:40 EST
The following steps may not seem like a typical use case, but they're the quickest/easiest ones that demonstrate the underlying problem.  I've run into real problems based on this during regular usage.

- create top-level folder "folder" with contained file "file.txt"
- open file.txt in the editor
- in a new browser or browser tab open a second view on the same workspace
- in the second view delete the "folder" folder
- in the first view press Refresh
- it attempts to reload the file and shows an error message since it's deleted, which is fine
- the url is left as something like "https://orion.eclipse.org/edit/edit.html#<workspaceDir>/folder/file.txt"
- manually set the url to https://orion.eclipse.org/edit/edit.html in an attempt to show the top-level folders
  -> the url gets auto-changed to "https://orion.eclipse.org/edit/edit.html#<workspaceDir>/folder/file.txt" again, and fails again
  -> this auto-change shouldn't have happened, it has already tried to use the stored path to maintain context