jdk17u-dev icon indicating copy to clipboard operation
jdk17u-dev copied to clipboard

8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases

Open alexeybakhtin opened this issue 1 year ago • 4 comments
trafficstars

Almost clean backport from JDK21

The only difference is an additional EPERM check in the stat1 method. This method was removed in JDK21 as part of JDK-8283335


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [ ] JDK-8337966 needs maintainer approval
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2883/head:pull/2883
$ git checkout pull/2883

Update a local copy of the PR:
$ git checkout pull/2883
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2883/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2883

View PR using the GUI difftool:
$ git pr show -t 2883

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2883.diff

Webrev

Link to Webrev Comment

alexeybakhtin avatar Sep 16 '24 17:09 alexeybakhtin