Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2534

File Handle Leak in URLResourceStream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1, 1.4.2, 1.4.3
    • Fix Version/s: 1.4.4, 1.5-M1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Any

      Description

      The URLResourceStream constructor is using a UrlConnection to access the lastModifiedDate of jar files. This leads to a known File Handle leak as described here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg20951.html . The workaround for this issue is also described here. It appears that this workaround has been applied to the URLResourcesStream#lastModifiedTime method and so it could easily be replicated in the constructor to avoid calling lastModifiedTime on the JarUrlResourceConnection.

        Attachments

        1. UrlResourceStream.java
          8 kB
          Adam Bender

          Issue Links

            Activity

              People

              • Assignee:
                ivaynberg Igor Vaynberg
                Reporter:
                adambender Adam Bender
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: