Community
Participate
Working Groups
When creating a new file the error message displayed when the file already exists is: "No authority or file name not valid" -- RSEF1302 When creating a folder the error message displayed when the folder already exists is: "Creation of the folder failed" -- RSEF1304 The error message that should be displayed is that the file already exists. The reason this is happening is in DStoreFileService the createFile and createFolder functions do a check for success and return the file or else throw the error message. It should do the check for success then do a check if the status is IServiceConstants.FAILED_WITH_EXIST and throws the appropriate exception, else throws the exception that is being thrown now. -----------Enter bugs above this line----------- installation : eclipse-SDK-3.3M6 RSE install : RSE2.0M6a java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
Created attachment 64792 [details] Fix for displaying file exists error message Simple fix that just checks the status if it's IServiceConstants.FAILED_WITH_EXIST and throws the appropriate File Exists exception. Legal Message: I, Kevin Doyle, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this contribution under the EPL.
Created attachment 65032 [details] Changed exception thrown for folder exists Changed the message thrown with SystemMessageException to be "Folder already exists" instead of "File already exists" when creating a new folder.
The patch looks good to me. Dave do you want to apply it? Please remember editing www-tm-dev/tm-log.cvs
*** Bug 183839 has been marked as a duplicate of this bug. ***
I've applied the patch.
[target cleanup] 2.0 M7 was the original target milestone for this bug