Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b58
-
x86
-
linux
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8193964 | openjdk7u | Sean Mullan | P3 | Resolved | Fixed | master |
Description
There is a sqe test named CertPath/CertPathValidatorTest/KeyParamsInheritanceTest fails even after the fix for 7187962 is integrated:
Test CertPath/CertPathValidatorTest/KeyParamsInheritanceTest fails for NullPointerException:
Testing : failure builder test: initial trusted key has no params: forward
java.lang.NullPointerException
Testing : failure builder test: initial trusted key has no params: reverse
java.lang.NullPointerException
The fix for 7187962 solves the certpath validator issue, but looks like there is still regression with certpath builder.
Exception StackTrace:
java.lang.NullPointerException
at sun.security.pkcs11.P11DSAKeyFactory.implTranslatePublicKey(P11DSAKey
Factory.java:57)
at sun.security.pkcs11.P11KeyFactory.engineTranslateKey(P11KeyFactory.ja
va:127)
at sun.security.pkcs11.P11KeyFactory.convertKey(P11KeyFactory.java:64)
at sun.security.pkcs11.P11Signature.engineInitVerify(P11Signature.java:3
78)
at java.security.Signature$Delegate.init(Signature.java:1103)
at java.security.Signature$Delegate.chooseProvider(Signature.java:1066)
at java.security.Signature$Delegate.engineInitVerify(Signature.java:1121
)
at java.security.Signature.initVerify(Signature.java:451)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:440)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:394)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:394)
at sun.security.provider.certpath.ReverseBuilder.verifyCert(ReverseBuild
er.java:516)
at sun.security.provider.certpath.SunCertPathBuilder.depthFirstSearchRev
erse(SunCertPathBuilder.java:668)
at sun.security.provider.certpath.SunCertPathBuilder.buildReverse(SunCer
tPathBuilder.java:252)
at sun.security.provider.certpath.SunCertPathBuilder.buildCertPath(SunCe
rtPathBuilder.java:167)
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBu
ilder.java:136)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCert
PathBuilder.java:131)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at BuildCertPath.doBuild(BuildCertPath.java:397)
at KeyParamsInheritanceTest.builderTestFailure(KeyParamsInheritanceTest.
java:621)
at KeyParamsInheritanceTest.doBuilderTests(KeyParamsInheritanceTest.java
:560)
at KeyParamsInheritanceTest.doTest(KeyParamsInheritanceTest.java:198)
at KeyParamsInheritanceTest.runTest(KeyParamsInheritanceTest.java:144)
at KeyParamsInheritanceTest.main(KeyParamsInheritanceTest.java:127)
Test CertPath/CertPathValidatorTest/KeyParamsInheritanceTest fails for NullPointerException:
Testing : failure builder test: initial trusted key has no params: forward
java.lang.NullPointerException
Testing : failure builder test: initial trusted key has no params: reverse
java.lang.NullPointerException
The fix for 7187962 solves the certpath validator issue, but looks like there is still regression with certpath builder.
Exception StackTrace:
java.lang.NullPointerException
at sun.security.pkcs11.P11DSAKeyFactory.implTranslatePublicKey(P11DSAKey
Factory.java:57)
at sun.security.pkcs11.P11KeyFactory.engineTranslateKey(P11KeyFactory.ja
va:127)
at sun.security.pkcs11.P11KeyFactory.convertKey(P11KeyFactory.java:64)
at sun.security.pkcs11.P11Signature.engineInitVerify(P11Signature.java:3
78)
at java.security.Signature$Delegate.init(Signature.java:1103)
at java.security.Signature$Delegate.chooseProvider(Signature.java:1066)
at java.security.Signature$Delegate.engineInitVerify(Signature.java:1121
)
at java.security.Signature.initVerify(Signature.java:451)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:440)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:394)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:394)
at sun.security.provider.certpath.ReverseBuilder.verifyCert(ReverseBuild
er.java:516)
at sun.security.provider.certpath.SunCertPathBuilder.depthFirstSearchRev
erse(SunCertPathBuilder.java:668)
at sun.security.provider.certpath.SunCertPathBuilder.buildReverse(SunCer
tPathBuilder.java:252)
at sun.security.provider.certpath.SunCertPathBuilder.buildCertPath(SunCe
rtPathBuilder.java:167)
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBu
ilder.java:136)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCert
PathBuilder.java:131)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at BuildCertPath.doBuild(BuildCertPath.java:397)
at KeyParamsInheritanceTest.builderTestFailure(KeyParamsInheritanceTest.
java:621)
at KeyParamsInheritanceTest.doBuilderTests(KeyParamsInheritanceTest.java
:560)
at KeyParamsInheritanceTest.doTest(KeyParamsInheritanceTest.java:198)
at KeyParamsInheritanceTest.runTest(KeyParamsInheritanceTest.java:144)
at KeyParamsInheritanceTest.main(KeyParamsInheritanceTest.java:127)
Attachments
Issue Links
- backported by
-
JDK-8193964 CertPath/CertPathValidatorTest/KeyParamsInheritanceTest fails with NullPointerException
-
- Resolved
-
- relates to
-
JDK-7187962 sun.security.pkcs11.P11DSAKeyFactory.implTranslatePublicKey doesn't check if params is null
-
- Closed
-