[JIRA] (JENKINS-49971) hudson.Util.loadFile() has a race condition
Title: Message Title Daniel Trebbien commented on JENKINS-49971 Re: hudson.Util.loadFile() has a race condition https://github.com/jenkinsci/jenkins/pull/3225 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49971) hudson.Util.loadFile() has a race condition
Title: Message Title Daniel Trebbien updated an issue Jenkins / JENKINS-49971 hudson.Util.loadFile() has a race condition Change By: Daniel Trebbien Issue Type: Improvement Bug Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49971) hudson.Util.loadFile() has a race condition
Title: Message Title Daniel Trebbien created an issue Jenkins / JENKINS-49971 hudson.Util.loadFile() has a race condition Issue Type: Improvement Assignee: Unassigned Components: core Created: 2018-03-07 02:07 Priority: Minor Reporter: Daniel Trebbien 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. Add Comment