File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
core/src/main/java/lucee/commons/io/res/type/file Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,9 @@ public OutputStream getOutputStream(boolean append) throws IOException {
263263 provider .lock (this );
264264 try {
265265 if (!super .exists () && !super .createNewFile ()) {
266- throw new IOException ("Can't create file [" + this + "]" );
266+ // It's possible that another process (outside this JVM) has already created the file
267+ // after our initial check, so we perform a double check before throwing an exception.
268+ if (!super .exists ()) throw new IOException ("Can't create file [" + this + "]" );
267269 }
268270 return new BufferedOutputStream (new ResourceOutputStream (this , new FileOutputStream (this , append )));
269271 }
Original file line number Diff line number Diff line change 22<project default =" core" basedir =" ." name =" Lucee"
33 xmlns : resolver =" antlib:org.apache.maven.resolver.ant" >
44
5- <property name =" version" value =" 6.0.4.9 -SNAPSHOT" />
5+ <property name =" version" value =" 6.0.4.10 -SNAPSHOT" />
66
77 <taskdef uri =" antlib:org.apache.maven.resolver.ant" resource =" org/apache/maven/resolver/ant/antlib.xml" >
88 <classpath >
Original file line number Diff line number Diff line change 33
44 <groupId >org.lucee</groupId >
55 <artifactId >lucee</artifactId >
6- <version >6.0.4.9 -SNAPSHOT</version >
6+ <version >6.0.4.10 -SNAPSHOT</version >
77 <packaging >jar</packaging >
88
99 <name >Lucee Loader Build</name >
You can’t perform that action at this time.
0 commit comments