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

Bug 312362

Summary: Editing Unix file after it changes on host edits old data
Product: [Tools] Target Management Reporter: Masao Nishimoto <e03616>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: dmcknigh
Version: 3.0.3   
Target Milestone: 3.2 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 312484    
Attachments:
Description Flags
patch to handle open and open with cases none

Description Masao Nishimoto CLA 2010-05-10 21:32:59 EDT
Editing a Unix file on the host, after it has been changed on the host, edits the data before the change.
You must open, close and reopen any Unix file to be sure you have the latest copy.

Scenario: (note that Unix Shell does not have to be from within RDz)

Unix Shell: cd <home directory>
Unix Shell: echo one > foobar ; cat foobar
  <verify one is printed>
RSE: refresh view and double click foobar
       <verify "one" is shown in the editor>
       <close editor>
Unix Shell: echo two > foobar ; cat foobar
  <verify "two" is printed>
RSE:  double click foobar
       <error: "one" is still shown in the editor> 

The problem does not exist in 3.2.  The fix is required for 3.0.3+.
Comment 1 David McKnight CLA 2010-05-11 14:38:24 EDT
With RSE 3.0.3, this is an issue in the double-click.  I also discovered that this is an issue for the open actions in not just RSE 3.0.3, but also RSE 3.2.
Comment 2 David McKnight CLA 2010-05-11 14:43:47 EDT
Created attachment 168002 [details]
patch to handle open and open with cases
Comment 3 David McKnight CLA 2010-05-11 14:47:41 EDT
I've committed the change to cvs and open bug 312484 for the backport of the open and open with cases along with the original 3.0.3-specific double-click case.