hudson.Util.loadFile() has a race condition

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Daniel Trebbien
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: