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

CA importcert CLI command should halt on error when no superadmincn is provided

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.6.0
    • Component/s: None
    • Labels:
      None

      Description

      If not, it will print an error message but continue and give an ugly stacktrace.
      Trivial fix.

      Error: -initauthorization flag was used, but super administrator Common Name was not defined with the -superadmincn switch.
      Not initializing authorization module.
      Exception in thread "main" javax.ejb.EJBException: java.security.InvalidParameterException: Attempted to create an AccessUserAspectData with matchValue == null
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInNoTx(CMTTxInterceptor.java:213)
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:265)
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:374)

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Verified by:
            Aveen Ismail (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: