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

hudson.Util.loadFile() has a race condition

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Util.loadFile() first checks if the file exists via File.exists(). It then tries to open the file for reading. However, it is possible for the file to be deleted between the existence check and the file-open operation, in which case the method throws a FileNotFoundException rather than returning an empty string.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dtrebbien Daniel Trebbien
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: