Bug 412571

Summary: Truncate file when compare file in workspace by Remote System Explorer
Product: [Tools] Target Management Reporter: Billy Lau <hkblau>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: David Dykstal <ddykstal.eclipse>
Severity: critical    
Priority: P1 CC: dmcknigh, os-dev
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 412859    
Attachments:
Description Flags
patch to make sure file is within RemoteSystemsTempFiles before attempting download none

Description Billy Lau CLA 2013-07-09 05:12:41 EDT
When compare file in workspace with other files (including local and remote file), the file in workspace become blank. (erased all content in the file)

-- Configuration Details --
Product: Eclipse 2.0.0.20130613-0530 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 4.3.0.v20130605-2000
Comment 1 Jason Craig CLA 2013-07-09 18:58:33 EDT
Confirmed, Windows XP.  Seems pretty critical since it is immediately truncating the file contents when you compare the files, it doesn't happen after you save the comparison view.  As pointed out it only seems to be the case when the file is located within the workspace, other RSE compares work well.
Comment 2 David Dykstal CLA 2013-07-12 08:59:56 EDT
Dave --

Assigning to you since I'll be out for a bit.
Comment 3 David McKnight CLA 2013-07-12 09:41:57 EDT
To clarify, this seems to occur when the file(s) involved in the compare are under the RSE Local connection and also contained within the workspace.  I suspect this may have been caused by the change for bug 399101.
Comment 4 David McKnight CLA 2013-07-12 09:58:00 EDT
Created attachment 233424 [details]
patch to make sure file is within RemoteSystemsTempFiles before attempting download
Comment 5 David McKnight CLA 2013-07-12 10:19:18 EDT
I've committed a fix for this and I've opened bug 412859 for the backport to the R3_4_maintenance stream.