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

Bug 158534

Summary: [ssh] Save conflict when modifying remote file
Product: [Tools] Target Management Reporter: Greg Watson <g.watson>
Component: RSEAssignee: Martin Oberhuber <mober.at+eclipse>
Status: CLOSED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: major    
Priority: P2 CC: mober.at+eclipse
Version: 1.0   
Target Milestone: 1.0   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 162688    
Bug Blocks:    

Description Greg Watson CLA 2006-09-25 06:27:34 EDT
Changes to a remote file seem to be forgotten by RSE.

1. Create SSH connection
2. Open a remote file
3. Make a change to the remote file and save change
4. Changes appear in remote file
5. Make another change to the remote file and save
6. A 'Save Conflict' dialog is displayed with the message:

    This file on the remote system has changed since it was opened.

7. Choose 'Overwrite the remote file'
8. A new dialog is displayed 'RSEF1002E':

    Operation failed. File system input or output error.

    Message reported from file system: Sftp: 4: java.lang.NullPointerException
Comment 1 Martin Oberhuber CLA 2006-09-25 06:34:01 EDT
Great bug.
Thanks!

For further Release Testing, please record your
environment and file bugs through the bugzilla bookmark mechanism as explained
on http://wiki.eclipse.org/index.php?title=RSE_1.0_Test_Instructions
Comment 2 Greg Watson CLA 2006-09-25 07:04:40 EDT
Sorry about that. I tried this link and got an error. I think you need to be logged in before it works. Here's the information.

-----------Enter bugs above this line-----------
RSE 1.0 Testing round 1
installation : Eclipse M20060629-1905 platform-3.2, cdt-sdk-3.1.0
RSE install  : download RSE-runtime-core, runtime-dstore, runtime-remotecdt
java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version: 1.5.0_06-112
os.name:     Mac OS X
os.version:  10.4.7
Comment 3 Martin Oberhuber CLA 2006-09-25 08:45:41 EDT
Updated the test instructions to ask for logging in to bugzilla first. 
Thanks for the report!
Comment 4 Martin Oberhuber CLA 2006-10-29 15:36:51 EST
The NullPointerException is caused by improper API usage, see bug 162688.
Fixed it locally by adding a workaround to FileServiceSubSystem and SftpFileService.

I could not reproduce the problem of showing the editor conflict dialog when it shouldn't be shown, on either Windows or Linux. The only way I could get to this dialog, was by changing the remotely edited file outside RSE or by opening TWO connections to the remote system (either ssh and local, or two different ssh connections). With two connections, behavior is as expected.

If the problem should occur again on macintosh with a SINGLE connection only, please reopen.
Comment 5 Martin Oberhuber CLA 2006-10-31 05:15:56 EST
Verified by Lothar Werzinger, closing.
Comment 6 Eclipse Webmaster CLA 2007-07-29 09:20:56 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991
Comment 7 Martin Oberhuber CLA 2008-08-13 13:08:08 EDT
[target cleanup] 1.0 RC3 was the original target milestone for this bug