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

File handle leak in serving static files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None

      Description

      	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.

        Activity

        kohsuke Kohsuke Kawaguchi created issue -
        scm_issue_link SCM/JIRA link daemon made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            kohsuke Kohsuke Kawaguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: