Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7222

WebService keyRecoveryEnroll gives NPE if end entity extendedInformation is missing

    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)

       

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes
                1h 30m