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

Bug 419070

Summary: Autosave stops working
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe, Mike_Wilson
Version: 4.0Flags: gheorghe: review+
Target Milestone: 4.0 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2013-10-09 14:23:03 EDT
1) Open a file in the editor
2) Enable autosave
3) Increased the save timeout to 10000 (only to make it easier to reproduce the problem)
4) Make a change in the file
5) Click in the parent folder of the file in the bread crums
6) Reopen the same file

Note that the change made in four is saved.

7) Make another change and wait at least 10 seconds

Auto save does not happen.
Comment 1 Silenio Quarti CLA 2013-10-09 14:28:31 EDT
An exception happen after step 5) because the input manager fileMetadata is null. The save success handler runs after the fileMetadata is nulled out.

The fix is to check that the save handler is running for the current input.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=2b330009df06d62ae26858d69fb224edcf39ba20