Details
-
Bug
-
Resolution: Fixed
-
High
-
5.1, 5.2, 5.3, 2014.07, 5.3.2, 5.4.0-beta1
Description
EZP-21825 fix some of the temporary files left in the file system if there's a failure in the copy/rename process between the local and the NFS file systems.
But, if after the copy the file size of the original and the copied file are different, the tempo files will be left undeleted.
Steps to Reproduce
This is a hard issue to reproduce since it will only happen if there are any NFS errors, but it's possible to achieve the same reproduce.
Edit
+ if( $loopCount != $this->maxCopyTries ) +{ + $dfsFileSize += 10; + $localFileSize -= 10; +} $localFileSize = filesize( $filePath ); if ( $dfsFileSize == $localFileSize ) { return $filePath; }