You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2022/10/19 14:24:00 UTC

[jira] [Resolved] (SLING-11630) Feature model IOUtils should not use caches for jar files from jar url connection

     [ https://issues.apache.org/jira/browse/SLING-11630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Pauls resolved SLING-11630.
--------------------------------
    Resolution: Fixed

Done in https://github.com/apache/sling-org-apache-sling-feature/pull/31

> Feature model IOUtils should not use caches for jar files from jar url connection
> ---------------------------------------------------------------------------------
>
>                 Key: SLING-11630
>                 URL: https://issues.apache.org/jira/browse/SLING-11630
>             Project: Sling
>          Issue Type: Bug
>          Components: Feature Model
>    Affects Versions: Feature Model 1.2.30
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>            Priority: Major
>             Fix For: Feature Model 1.3.0
>
>
> The JarUrlConnection is set to use caches for JarFiles by default. That is a problem because if there is more than one connection for the same JarFile and the connection is going away, it will close the JarFile - potentially causing the users of the JarFile from the other (still open) connection with a closed JarFile. 
> To work around this problem, the IOUtils should set use caches to false on the connections it creates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)