Questions Tagged With filehttps://answers.axonivy.com/tags/file/?type=rss&user=Genzer%20Hawkerquestions tagged <span class="tag">file</span>enFri, 16 Jan 2015 09:24:48 -0500Temporary (Ivy) file created by System session will not be deletedhttps://answers.axonivy.com/questions/1121/temporary-ivy-file-created-by-system-session-will-not-be-deleted<p>In the documentation of Ivy <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.ivyscript.html#ivy.ivyscript.reference.datatypes">File</a> (emphasis mine)</p> <blockquote> <p>A File object can be used to read/write temporary or persistent data. IvyScript Files are created in a confined area that belongs to the running application. Temporary files are created in a session-specific file area and <strong>are automatically deleted if a session ends</strong>. Temporary Files can be made persistent.</p> </blockquote> <p>If a <em>temporary</em> <code>File</code> is created, it will be located at <code>{app}/files/sessions/{sessionId}/</code>. The files then will be deleted if the session is invalidated.</p> <p>Unfortunately, this isn't true for <em>temporary</em> files created by SYSTEM user. The SYSTEM user's session is always have the <code>id</code> of <code>0</code>, hence all files created in SYSTEM user's session will be located at <code>{app}/files/sessions/0/</code>.</p> <p>It seems that Ivy Server will never invalidate SYSTEM user's session, thus all files located in the directory will by left there undeleted (same as <em>persistent</em> file).</p> <p>I don't know whether this is a known fact as a consequence of the implementation that SYSTEM user will never be invalidated or it should be considered (somehow) as a bug?</p> <p>Thanks for considering my question.</p> <p>Regards</p>Genzer HawkerFri, 16 Jan 2015 09:24:48 -0500https://answers.axonivy.com/questions/1121/temporary-ivy-file-created-by-system-session-will-not-be-deletedsessiontemporaryfile