-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QuarkusTest wants to create TMP directory in the root directory instead of users directory on Windows machine #41124
Comments
You can work around it by following these instructions: https://quarkus.io/guides/vertx-reference#deploy-on-read-only-environments . I'm not sure if the defaults for Windows should be adjusted though. @cescoffier the default is determined by Vert.x, right? |
It will use the JVM temporary directory. If that one is not writable, you will have to configure the directory. |
But for me the JVM temporary directory is writable (System.getProperty("java.io.tmpdir")). This point to |
So this is the code part in vert.x i assume:
|
Setting _-Dvertx.cacheDirBase value makes no difference in the end result. |
Hum, the lambda extension may override the cache dir. |
#41147 takes care of it |
So, I was right, the lambda extension sets the temp directory (ignoring the user value). |
Yup |
Only set tmp dir for Lambda in normal mode
Describe the bug
When running a test using
@QuarkusTest
on Windows 10 machine with an user with no permission to change c:\tmp i get the following exception.I am using quarkus 3.11.1. Other projects where i use the same version of Quarkus works perfectly. But there is only one thing that is different. In this project i am using the extension
Below my depedencies:
Expected behavior
All TMP files should be created in the user directory.
Actual behavior
Tries to write temp files to c:\tmp
How to Reproduce?
I needed i can create a reproducer shortly
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19045.4412]
Output of
java -version
openjdk 21.0.2 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.11.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.9.1
Additional information
No response
The text was updated successfully, but these errors were encountered: