Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)
Created: 04/21/2016
Components: File Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win All
Vote Count: 1
Problem Description:
if the source file is locked, fileMove() would copy the file over to the destination anyway, then failed to remove the source file without throwing an exception.
Steps to Reproduce:
fileOpen(sourceFile, 'read'); // lock sourceFile
fileMove(sourceFile, targetFile);
Actual Result:
Both sourceFile & targetFile exist
Expected Result:
exception should be thrown to indicate the file move operation failed or incomplete with type set to something other than "Application"
Any Workarounds:
check if sourceFile exists after filemove(), use deleteFile() to trigger an exception
or use Java File IO...
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4143367
External Customer Info:
External Company:
External Customer Name: Henry Ho
External Customer Email:
External Test Config: My Hardware and Environment details:
JRE 1.8.0_77 on Windows 10
Attachments:
Comments: