RFR: 8322881: java/nio/file/Files/CopyMoveVariations.java fails with AccessDeniedException due to permissions of files in /tmp
Jaikiran Pai
jpai at openjdk.org
Fri Jan 5 16:22:25 UTC 2024
On Thu, 4 Jan 2024 02:01:55 GMT, yaqsun <duke at openjdk.org> wrote:
>>> > Yes, the default temporary file directory "/tmp" causes permission issues.
>>>
>>> Is this issue then perhaps a problem with the system which should not require a change to the test?
>>
>> The issue is unrelated to system, as the issue is repeated when running with Jtreg command.
>>
>> jtreg/bin/jtreg -dir:test/jdk -testjdk:./** java/nio/file/Files/CopyMoveVariations.java
>
>> @yaqsun Sorry, but I corrected a typo in the issue title so you will again need to change the title of this request to match.
>
> The title have been updated.
Hello @yaqsun, I just did a search for "Files.createTempFile" under `/test/jdk` directory:
grep "Files.createTempFile" ./test/jdk -R
There are numerous tests within the JDK which do that call without passing the call a directory under which to create these temporary files, just like this `CopyMoveVariations`. Are those tests passing for you on this system and only this specific one fails?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17235#issuecomment-1878928602
More information about the nio-dev
mailing list