Skip to content
Commit aa799e39 authored by Daniel Trebbien's avatar Daniel Trebbien Committed by Oliver Gondža
Browse files

[JENKINS-49971] Fix a race condition in Util.loadFile() (#3225)

* Fix a race condition in Util.loadFile()

If the file is deleted in between when its existence is checked and the
file is opened for reading, then the method will fail to return an empty
string.

* Switch to using FileUtils.readFileToString()

(cherry picked from commit aaae71af)
parent 99592e0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment