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

          dtrebbien Daniel Trebbien created issue -
          dtrebbien Daniel Trebbien made changes -
          Field Original Value New Value
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          oleg_nenashev Oleg Nenashev made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels lts-candidate
          olivergondza Oliver Gond┼ża made changes -
          Labels lts-candidate 2.107.2-fixed

            People

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

              Dates

              Created:
              Updated:
              Resolved: