Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: EJBCA 6.14.1
-
Component/s: None
-
Labels:None
-
Issue discovered during:Customer
-
Sprint:EJBCA Sprint 18
Description
keyRecoveryEnroll is missing a systemtest. A basic systemtest, using the single-shot method keyRecoveryEnroll instead of the two shot "keyRecover+p12Req" fails with NPE. The keyRecoveryEnroll method was designed for the RA, that always sets ExtendedInformation, but for WS and other normal use cases ExtendedInformation can be null.
Caused by: java.lang.NullPointerException
at org.ejbca.core.model.era.RaMasterApiSessionBean.generateKeyStore(RaMasterApiSessionBean.java:1734)
at org.ejbca.core.model.era.RaMasterApiSessionBean.keyRecoverEnrollWS(RaMasterApiSessionBean.java:2142)