spring-boot/spring-boot-project
Andy Wilkinson 7a898cbbec Prevent custom java.io.tmpdir from polluting JVM's temp file creation
If java.nio.file.Files.createTempFile or
java.io.File.createTempFile(String, String) is called for the first
time while the java.io.tmpdir system property is set to a custom
value, the JVM's temporary file creation will then try to use that
custom temporary directory for all subsequent file creation. This
can result in failures if the custom temporary directory is deleted
and the JVM then tries to use it.

This commit avoids the problem by calls the two createTempFile
methods while the default java.io.tmpdir value is in place. This
ensures that the JVM will use this original temporary directory for
all of its subsequent temporary file creation while allowing the
tests to use a custom location without unwanted side-effects.

Closes gh-41905
2024-08-16 19:19:15 +01:00
..
spring-boot Prevent custom java.io.tmpdir from polluting JVM's temp file creation 2024-08-16 19:19:15 +01:00
spring-boot-actuator Upgrade to spring-javaformat 0.0.43 2024-08-14 16:32:41 +02:00
spring-boot-actuator-autoconfigure Upgrade to spring-javaformat 0.0.43 2024-08-14 16:32:41 +02:00
spring-boot-autoconfigure Upgrade to spring-javaformat 0.0.43 2024-08-14 16:32:41 +02:00
spring-boot-dependencies Upgrade to Spring LDAP 3.2.6 2024-08-16 09:33:25 +02:00
spring-boot-devtools Update copyright year of changed files 2024-06-19 22:54:40 -07:00
spring-boot-docker-compose Move Docker-related test support into a separate module 2024-06-26 19:47:35 +01:00
spring-boot-docs Document that username and password are not used when Redis url is set 2024-08-09 14:10:20 +02:00
spring-boot-parent Minimize scope of version management for commons-compress 2024-02-06 15:08:15 +00:00
spring-boot-starters Upgrade to Tomcat 10.1.24 2024-05-16 15:05:48 +01:00
spring-boot-test Upgrade to spring-javaformat 0.0.43 2024-08-14 16:32:41 +02:00
spring-boot-test-autoconfigure Reduce warnings reported by Eclipse 2024-07-25 14:55:00 +01:00
spring-boot-testcontainers Don't initialize containers during AOT processing 2024-08-14 18:56:00 +01:00
spring-boot-tools Register JarUrlClassLoader as parallel capable 2024-08-15 11:11:18 +01:00