<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AESBinaryManager does not delete temporary files in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328124#M15125</link>
    <description>&lt;P&gt;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&lt;/P&gt;
&lt;P&gt;What am I doing wrong? is it a known error?&lt;/P&gt;
&lt;P&gt;P.s. The files will be deleted on closing cause close method of LocalBinaryManager&lt;/P&gt;
&lt;P&gt;LocalBinaryManager&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// be sure FileTracker won't steal our files !
        FileEventTracker.registerProtectedPath(base.getAbsolutePath());
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;FileEventTracker&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        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;
        }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ty
Antonio&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2017 16:29:38 GMT</pubDate>
    <dc:creator>Antonio_Pescion</dc:creator>
    <dc:date>2017-01-02T16:29:38Z</dc:date>
    <item>
      <title>AESBinaryManager does not delete temporary files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328124#M15125</link>
      <description>&lt;P&gt;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&lt;/P&gt;
&lt;P&gt;What am I doing wrong? is it a known error?&lt;/P&gt;
&lt;P&gt;P.s. The files will be deleted on closing cause close method of LocalBinaryManager&lt;/P&gt;
&lt;P&gt;LocalBinaryManager&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// be sure FileTracker won't steal our files !
        FileEventTracker.registerProtectedPath(base.getAbsolutePath());
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;FileEventTracker&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        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;
        }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ty
Antonio&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 16:29:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328124#M15125</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2017-01-02T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: AESBinaryManager does not delete temporary files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328125#M15126</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 15:06:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328125#M15126</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-01-03T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: AESBinaryManager does not delete temporary files</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328126#M15127</link>
      <description>&lt;P&gt;Hi Florent,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 07:28:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/aesbinarymanager-does-not-delete-temporary-files/m-p/328126#M15127</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2017-01-04T07:28:17Z</dc:date>
    </item>
  </channel>
</rss>

