01-02-2017 11:29 AM
I am using AESBinaryManager as binary encryption which works well, but no temporary files are deleted because its father LocalBinaryManager set as protected the binaries path. Considering that tmp folder is created under this folder, Framework.trackFile can not delete the file and a warning is done. Below the warning message: WARN log: Protect file filename from deletion : check usage of Framework.trackFile
What am I doing wrong? is it a known error?
P.s. The files will be deleted on closing cause close method of LocalBinaryManager
LocalBinaryManager
// be sure FileTracker won't steal our files !
FileEventTracker.registerProtectedPath(base.getAbsolutePath());
FileEventTracker
protected boolean isFileProtected(File fileToDelete) {
for (String path : protectedPaths) {
// do not delete files under the protected directories
if (fileToDelete.getPath().startsWith(path)) {
log.warn("Protect file " + fileToDelete.getPath()
+ " from deletion : check usage of Framework.trackFile");
return true;
}
}
return false;
}
ty Antonio
01-03-2017 10:06 AM
We've fixed a number of issues related to temporary file management in Nuxeo LTS 2016 (8.10). Could you please upgrade to this version and test again? Also please include the exact scenario you use to upload files.
01-04-2017 02:28 AM
Hi Florent,
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.