RFR: 8322881: java/nio/file/Files/CopyMoveVariations.java fails with AccessDeniedException due to permissions of files in /tmp

Alan Bateman alanb at openjdk.org
Fri Jan 5 17:04:25 UTC 2024


On Wed, 3 Jan 2024 03:42:17 GMT, yaqsun <duke at openjdk.org> wrote:

> testcase: java/nio/file/Files/CopyMoveVariations.java
> 
> Method createTempFile() creates "/tmp/file*" that it causes file copy permission issue when running through jtreg.
> 
> Create files for method "createTempFile()" passing in the current path(jtreg_test_jdk_java_nio_file_Files_CopyMoveVariations_java/scratch or JTwork/scratch).

I suspect the yaqsun runs into with this test because this test is testing file permissions. Most of the other tests that end up using the system tmp directory won't be as sensitive to the file permissions.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17235#issuecomment-1878987504


More information about the nio-dev mailing list