JDK test for creating Secure Data streams is failing on Alpine Linux versions >= 3.19 but works on the 3.18
The SecureDS.java
jtreg test is failing on Alpine Linux OS starting from version 3.19 when executed with the Java binary. Interestingly, the same test passes on earlier versions of Alpine, such as 3.18, with the same Java binary. This issue seems to be introduced with the Alpine 3.19 update.
Test Information:
- The test is part of OpenJDK and is available here: OpenJDK SecureDS.java
- Alpine Image:
docker pull alpine:3.19
Steps to run the test and reproduce the error:
-
Pull the Alpine 3.19 image:
docker pull alpine:3.19
-
Download JDK 17 for Alpine: Temurin JDK 17 for Alpine
-
Obtain the JTReg testing framework (version 7.31) for running the test.
-
Clone the JDK 17 repository:
git clone https://github.com/openjdk/jdk17u/
-
Run the test with the following command:
./java -Xmx512m -jar <path-to-jtreg>/jtreg.jar \ -w build/jtreg/SecureDS_work -r build/jtreg/SecureDS_report -agentvm \ -ignore:quiet -automatic -xml -vmoption:-Xmx512m -timeoutFactor:4 -concurrency:1 \ -testjdk:/<path-to-downloaded-jdk17>/jdk-17.0.13+11 \ /<path-to-jdk-repo>/openjdk-jdk17u/test/jdk/java/nio/file/DirectoryStream/SecureDS.java
-
Error Message from the test failure:
Failed. Execution failed: `main' threw exception: java.lang.AssertionError: SecureDirectoryStream not supported.
We are also planning to open an issue with the JDK team, but please let us know if this might not be the appropriate forum for addressing the problem. Please me know if any additional information is needed.