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

Bug 290290

Summary: [dstore] Error message when copy a file from another user’s folder
Product: [Tools] Target Management Reporter: Samuel Wu <samuelwu>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: dmcknigh
Version: unspecified   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295923, 299570    
Attachments:
Description Flags
patch to handle special cp failure case for z/os none

Description Samuel Wu CLA 2009-09-23 12:42:49 EDT
This problem found in RSE 3.0.3. It happened only on z/OS and the same scenario works fine on Linux.
1. Open RSE navigator to a z/OS system
2. Copy a file from another user and paste it to you own directory
3. Error message RSEF1306 pops up saying Copy of the file or folder <name> failed.  Detailed message is "The file system reported the copy operation failed. You may not have authority to the target folder, or it may be in use."

There is no problem with the target directory and source file.
Comment 1 Samuel Wu CLA 2009-09-23 12:48:14 EDT
A further investigation found that the following message from the host was returned in the status when dstore ran the command to do the paste
cp: FSUM8985 Cannot reset uid or gid on file "/home/user1/temp/test.txt": EDC5139I Operation not permitted.

	DataElement status = ds.command(cpCmd, args, tgtDE, true);
DStoreFileService.copy(String, String, String, String, IProgressMonitor) line: 1789	

It seems the cp command doesn't work well in this case.
Comment 2 David McKnight CLA 2009-11-23 15:22:33 EST
Created attachment 152895 [details]
patch to handle special cp failure case for z/os
Comment 3 David McKnight CLA 2009-11-23 15:27:12 EST
I've committed the change to cvs.
Comment 4 David McKnight CLA 2010-01-12 14:33:45 EST
Is this something you need backported for RSE 3.0.3?
Comment 5 Samuel Wu CLA 2010-01-13 17:04:15 EST
bug 299570 was opened for back porting to 3.0.3
Comment 6 David McKnight CLA 2010-01-14 11:49:21 EST
(In reply to comment #5)
> bug 299570 was opened for back porting to 3.0.3

It turns out this already got backported via bug 295923.