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

DynamicUiProperty of label type cause NPE on post back to server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.0.1
    • Fix Version/s: EJBCA 7.0.1
    • Component/s: CA GUI
    • Labels:
      None
    • Issue discovered during:
      Another issue
    • Sprint:
      EJBCA Team Bob - 2019 w6

      Description

      When a dynamically generated DynamicUiProperty label (text output) is displayed, then posting the form causes an "An exception has occurred" message and an NPE stacktrace from JSF core code.

      The reason is that the JSF core code uses reflection to find all getters/setters on components. When a component is missing a getter for a setter, it causes an NPE.

      Dynamically generated labels does not seem to be used in released versions of EJBCA, but a bug fix is needed for Domain Blacklist Validators.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samuel Samuel Lidén Borell
                Reporter:
                samuel Samuel Lidén Borell
                Verified by:
                Ulf Undmark
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m