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

        Hide
        kohsuke Kohsuke Kawaguchi added a comment -

        Making it critical to consider backporting for LTS.

        Show
        kohsuke Kohsuke Kawaguchi added a comment - Making it critical to consider backporting for LTS.
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        changelog.html
        core/pom.xml
        http://jenkins-ci.org/commit/jenkins/795a1db6d0a3aa6ea99a11fcd3fff2070724df57
        Log:
        [FIXED JENKINS-13097]

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml http://jenkins-ci.org/commit/jenkins/795a1db6d0a3aa6ea99a11fcd3fff2070724df57 Log: [FIXED JENKINS-13097]
        Hide
        dogfood dogfood added a comment -

        Integrated in jenkins_main_trunk #1589
        [FIXED JENKINS-13097] (Revision 795a1db6d0a3aa6ea99a11fcd3fff2070724df57)

        Result = SUCCESS
        Kohsuke Kawaguchi : 795a1db6d0a3aa6ea99a11fcd3fff2070724df57
        Files :

        • core/pom.xml
        • changelog.html
        Show
        dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1589 [FIXED JENKINS-13097] (Revision 795a1db6d0a3aa6ea99a11fcd3fff2070724df57) Result = SUCCESS Kohsuke Kawaguchi : 795a1db6d0a3aa6ea99a11fcd3fff2070724df57 Files : core/pom.xml changelog.html
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        core/pom.xml
        http://jenkins-ci.org/commit/jenkins/e1fe985bce9f6c2ee82ed6670433f5a92c738a35
        Log:
        [FIXED JENKINS-13097]

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/e1fe985bce9f6c2ee82ed6670433f5a92c738a35 Log: [FIXED JENKINS-13097]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: