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

yaqsun duke at openjdk.org
Mon Feb 19 01:53:21 UTC 2024


> testcase: java/nio/file/Files/CopyMoveVariations.java
> 
> Method createTempFile() creates "/tmp/file*" that it causes file copy permission issue when running through jtreg.
> 
> The method call `Files.move(source, target, options)` by Regular User causes AccessDeniedException due to ` /tmp/file*` is created 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).

yaqsun has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8322881
 - 8322881: Method createTempFile() causes file copy permission issue when running through jtreg

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17235/files
  - new: https://git.openjdk.org/jdk/pull/17235/files/02c90ed4..4ee537c5

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17235&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17235&range=00-01

  Stats: 97582 lines in 3281 files changed: 50032 ins; 25612 del; 21938 mod
  Patch: https://git.openjdk.org/jdk/pull/17235.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17235/head:pull/17235

PR: https://git.openjdk.org/jdk/pull/17235


More information about the nio-dev mailing list