Details
-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b02
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8291413 | 19.0.2 | Christoph Langer | P4 | Resolved | Fixed | b01 |
JDK-8291290 | 19.0.1 | Christoph Langer | P4 | Resolved | Fixed | b04 |
JDK-8290118 | 19 | Christoph Langer | P4 | Resolved | Fixed | b31 |
JDK-8290152 | 17.0.5 | Christoph Langer | P4 | Resolved | Fixed | b01 |
JDK-8297407 | 11.0.18 | Christoph Langer | P4 | Resolved | Fixed | b04 |
Description
This does not work reliably on Windows. On msys2, `chmod` is essentially a no-op, so the file is not made unreadable, and hence the test fails. In my personal cygwin test environment, the chmod command does have some effect, but it is still not enough to make the file unreadable, and so the test fails.
The test was originally a shell script test that got converted to Java in
What suprises me, though, is the "how can this ever has worked???" factor. Apparently the test passes on the current Cygwin setup on GHA. I have failed to reproduce the working conditions that makes a file actually unreadable for the owner on Windows. I've searched the web to figure out how to properly set file permissions on Windows to make the file unreadable, using Windows native tools, to no avail. I've even asked a Stack Overflow question[1]; which as of yet is still unanswered.
Since I feel I've spent far more time than reasonable trying to get this to work properly, I suggest we instead skip the unreadable test on Windows. It is clearly unstable and highly depending on the Windows environment, the test was never originally supported or intended for Windows, and at the of the day, testing file unreadability is not an important regression test for
[1] https://stackoverflow.com/questions/72528318/what-file-permissions-make-a-file-unreadable-by-owner-in-windows
Attachments
Issue Links
- backported by
-
JDK-8290118 UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
- Resolved
-
JDK-8290152 UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
- Resolved
-
JDK-8291290 UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
- Resolved
-
JDK-8291413 UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
- Resolved
-
JDK-8297407 UnreadableRB case in MissingResourceCauseTest is not working reliably on Windows
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/f27d48ec
-
Commit openjdk/jdk17u-dev/292e6bb7
-
Commit openjdk/jdk19/39715f3d
-
Commit openjdk/jdk/975316e3
-
Review openjdk/jdk11u-dev/1542
-
Review openjdk/jdk17u-dev/546
-
Review openjdk/jdk19/134
-
Review openjdk/jdk/9061