Bug 192705 - Launching shell on folder and renaming it in RS view causes inconsistencies
Summary: Launching shell on folder and renaming it in RS view causes inconsistencies
Status: CLOSED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
: 194050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-14 12:18 EDT by Rupen Mardirossian CLA
Modified: 2007-07-16 06:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rupen Mardirossian CLA 2007-06-14 12:18:37 EDT
To replicate 

1) open a shell for a folder under MY HOME filter in local (Right click on folder and select Launch Shell)
2) rename that folder in the Remote Systems View 
3) expand the folder 

Folder is unreadable 

Ive noticed if you were to refresh the MY HOME filter, the folder will switch back to its original name. 

-----------Enter bugs above this line-----------
TM 2.0M7 Testing
installation : eclipse-SDK-3.3RC3 
RSE install  : RSE-SDK-2.0RC3
java.runtime : Sun 1.5.0_06-b05
os.name:     : Windows XP 5.1, Service Pack 2
------------------------------------------------
Comment 1 David Dykstal CLA 2007-06-14 12:33:27 EDT
Looks like a future or 2.0.1 problem.
Comment 2 Xuan Chen CLA 2007-06-25 10:51:02 EDT
*** Bug 194050 has been marked as a duplicate of this bug. ***
Comment 3 Martin Oberhuber CLA 2007-06-28 07:36:19 EDT
Actually, the better description of this is in the duplicate (bug #194050):

"When rename fails, we should get error message when doing the rename, not after the rename and when we want to expand it."
Comment 4 David McKnight CLA 2007-07-04 14:26:59 EDT
Rename will fail when the folder is in use.  The LocalFileService wasn't handling cases where the rename failed (i.e. returned false).  To fix, that I put in code to throw a generic rename exception if java.io.File.rename() returns false.  Although the shown error message does not explicitly what caused the problem, the user will hopefully be able to infer why this failed.
Comment 5 Xuan Chen CLA 2007-07-15 23:37:44 EDT
I tried this scenario using 0713 2.0.1 driver.

I got a message: 
Renaming of the object aaaaaaa failed.
Details: 
Rename operation failed because, the object to rename does not exist, or the object with new object name already exists, or the user does not have enough authority to rename  the object

This is working as intended.
Comment 6 Martin Oberhuber CLA 2007-07-16 06:23:46 EDT
closing as per comment #5