Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13097

File handle leak in serving static files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • None

      	at java.io.FileInputStream.<init>(FileInputStream.java:121)
      	at java.io.FileInputStream.<init>(FileInputStream.java:79)
      	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
      	at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(FileURLConnection.java:90)
      	at sun.net.www.protocol.file.FileURLConnection.getHeaderField(FileURLConnection.java:126)
      	at sun.net.www.protocol.jar.JarURLConnection.getHeaderField(JarURLConnection.java:203)
      	at java.net.URLConnection.getHeaderFieldDate(URLConnection.java:603)
      	at java.net.URLConnection.getLastModified(URLConnection.java:532)
      	at org.kohsuke.stapler.Stapler.serveStaticResource(Stapler.java:241)
      	at org.kohsuke.stapler.Stapler.serveStaticResource(Stapler.java:252)
      	at org.kohsuke.stapler.ResponseImpl.serveFile(ResponseImpl.java:132)
      	at org.kohsuke.stapler.framework.adjunct.AdjunctManager.doDynamic(AdjunctManager.java:129)
      	at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      

      There's a file handle leak in Stapler.serveStaticResource that badly affects busy instances. I've fixed this in Stapler 1.182.

            Unassigned Unassigned
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: