cancel
Showing results for 
Search instead for 
Did you mean: 

AESBinaryManager does not delete temporary files

Antonio_Pescion
Confirmed Champ
Confirmed Champ

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

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

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.

Antonio_Pescion
Confirmed Champ
Confirmed Champ

Hi Florent,

Getting started

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.