[
https://issues.apache.org/jira/browse/SLING-10175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292708#comment-17292708
]
Carsten Ziegeler commented on SLING-10175:
------------------------------------------
[~karlpauls] Usually it would be enough to let the caller decide, but there are
two problems:
- the caller has no idea whether its a temp file and whether it should be
cleaned up
- getJarFileFromURL returns a JarFile not providing any access to the temp file
The temp files are not reused between calls to those methods and not on
restart, so I don't see a reason to keep those files
> Clean up temporary files from IOUtils
> -------------------------------------
>
> Key: SLING-10175
> URL: https://issues.apache.org/jira/browse/SLING-10175
> Project: Sling
> Issue Type: Improvement
> Components: Feature Model
> Affects Versions: Feature Model 1.2.20
> Reporter: Carsten Ziegeler
> Priority: Major
> Fix For: Feature Model 1.2.22
>
>
> IOUtils.getJarFileFromURL and IOUtils.getFileFromURL might create temp files
> which are never cleaned up.
> THis is for example visible by running the tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)