tracker issue : CF-4143367

select a category, or use search below
(searches all categories and all time range)

[regression] : fileMove() does not throw exception when move is incomplete

| View in Tracker

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

Listed in the version 2016.0.03.300466 Issues Fixed doc
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



Nikhil, This is breaking in latest update 299937. could you please check.
Comment by Poonam J.
3026 | August 17, 2016 12:36:02 AM GMT