You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2010/05/07 22:12:53 UTC

[jira] Updated: (IVY-1152) Ivy does not close URL connection to ivy-report.xsl properly

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

Maarten Coene updated IVY-1152:
-------------------------------

    Fix Version/s: 2.2.0-RC1
                       (was: trunk)

> Ivy does not close URL connection to ivy-report.xsl properly
> ------------------------------------------------------------
>
>                 Key: IVY-1152
>                 URL: https://issues.apache.org/jira/browse/IVY-1152
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0, 2.1.0
>            Reporter: Pavel Sher
>            Assignee: Maarten Coene
>             Fix For: 2.2.0-RC1
>
>
> It seems BasicURLHanlder.disconnect() does not properly close URL connection to ivy-report.xsl file. In my case URL looks like:
> jar:file:/<path>/ivy-2.0.jar!/org/apache/ivy/plugins/report/ivy-report.xsl
> In disconnect() method there is a check for URL connection class:
> "sun.net.www.protocol.file.FileURLConnection".equals(con.getClass().getName())
> However in runtime this check does not work because instead of FileURLConnection there is JarURLConnection:
> sun.net.www.protocol.jar.JarURLConnection
> This leads to leaked input streams if Ivy is used programmatically within the same JVM.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.