[jdk21u-dev] Integrated: 8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Todd V. Jonker duke at openjdk.org
Wed Aug 14 13:03:52 UTC 2024


On Mon, 22 Jul 2024 20:25:34 GMT, Todd V. Jonker <duke at openjdk.org> wrote:

> This is a clean backport of https://github.com/openjdk/jdk/commit/36ac83904c9e81a01822b0e36ef677cae2808709 originally authored by @bplb and reviewed by @AlanBateman  
> 
> It also includes this follow-up fix:
>   * [JDK-8317128](https://bugs.openjdk.org/browse/JDK-8317128): **java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException** 
>       * https://github.com/openjdk/jdk/pull/15991
> 
> Additional testing:
> - [x] New regression test fails without the fix, passes with it
> - [x] linux-x86_64-server-release: `JTREG_KEYWORDS="!headful & !external-dep & !printer" make test TEST="tier1 tier2 tier3"`

This pull request has now been integrated.

Changeset: 590715f4
Author:    Todd V. Jonker <jonker at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/590715f4f62a6e4c9cdf4cf1061b4ee7a2f3808e
Stats:     319 lines in 6 files changed: 307 ins; 3 del; 9 mod

8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable
8317128: java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException

Reviewed-by: phh
Backport-of: 36ac83904c9e81a01822b0e36ef677cae2808709

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

PR: https://git.openjdk.org/jdk21u-dev/pull/863


More information about the jdk-updates-dev mailing list