Ivy
  1. Ivy
  2. IVY-1152

Ivy does not close URL connection to ivy-report.xsl properly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Activity

        Maarten Coene made changes -
        Fix Version/s 2.2.0-RC1 [ 12315013 ]
        Fix Version/s trunk [ 12313426 ]
        Maarten Coene made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Maarten Coene [ maartenc ]
        Fix Version/s trunk [ 12313426 ]
        Resolution Fixed [ 1 ]
        Pavel Sher created issue -

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Pavel Sher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development