• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      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.

          [JENKINS-49971] hudson.Util.loadFile() has a race condition

          Daniel Trebbien created issue -
          Daniel Trebbien made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Oleg Nenashev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Labels New: lts-candidate
          Oliver Gondža made changes -
          Labels Original: lts-candidate New: 2.107.2-fixed

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

              Created:
              Updated:
              Resolved: