[13u] RFR: 8248406: Some zipfs tests fail with AccessControlException
Andrew Brygin
abrygin at azul.com
Fri Jun 26 13:44:41 UTC 2020
Hello,
could you please review a fix for JDK-8248406?
Webrev: http://cr.openjdk.java.net/~bae/13u/8248406/webrev.00/
This is a regression in 13.0.4 caused by an incomplete backport of
JDK-8229888:
https://hg.openjdk.java.net/jdk-updates/jdk13u/rev/cabda0c85f17
Following tests fail in 13.0.4 with AccessControlException:
jdk/nio/zipfs/DirectoryStreamTests.java
jdk/nio/zipfs/ZFSTests.java
jdk/nio/zipfs/ZipFSTester.java
The root cause of the failure is that default.policy has not been
updated with RuntimePermission "accessUserInformation". In jdk14 this
update was a part of the fix for JDK-8213031. This fix has not been
backported to 13u, so this permission update shall be done as a part of
backport for JDK-8229888, but it has been missed.
Suggested solution is to add RuntimePermission "accessUserInformation",
as it was done in 11u as a part of the backport of JDK-8229888:
https://hg.openjdk.java.net/jdk-updates/jdk11u-dev/rev/57fd597352b8#l1.7
Thanks,
Andrew
More information about the jdk-updates-dev
mailing list