Bug 412571 - Truncate file when compare file in workspace by Remote System Explorer
Summary: Truncate file when compare file in workspace by Remote System Explorer
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Windows 7
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: David McKnight CLA
QA Contact: David Dykstal CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 412859
  Show dependency tree
 
Reported: 2013-07-09 05:12 EDT by Billy Lau CLA
Modified: 2013-07-12 10:19 EDT (History)
2 users (show)

See Also:


Attachments
patch to make sure file is within RemoteSystemsTempFiles before attempting download (2.14 KB, patch)
2013-07-12 09:58 EDT, David McKnight CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.