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

Regression: NPE in Admin GUI editing CVC CA that was created before validators

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.11.0
    • Component/s: CA GUI
    • Labels:
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Sprint 5

      Description

      I have an old CVCA in my system. Trying to edit this CA results in an NPE in the Admin GUI.

      16:27:15,336 INFO [org.cesecore.audit.impl.log4j.Log4jDevice] (default task-89) 2017-12-18 16:27:15+01:00;ACCESS_CONTROL;SUCCESS;ACCESSCONTROL;CORE;CN=SuperAdmin;;;;resource0=/cryptotoken/view/459472142
      16:27:15,487 ERROR [errorpage.jsp] (default task-89) null: java.lang.NullPointerException
      at org.apache.jsp.ca.editcas.editcas_jsp._jspService(editcas_jsp.java:5483)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      Looking into editcas.jsp, it is this code:

      if(editca && usedKeyValidators.contains(validatorId))

      Let CAInfo check for null and never return null for getValidators().

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Samuel Lidén Borell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: