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

Fix DynamicUiProperty serialization into ProfileData table with approval profiles

    Details

    • Provenance:
      Internal Delivery

      Description

      With org.ejbca.core.model.approval.profile.AccumulativeApprovalProfile.addConstantProperties(ApprovalPartition approvalPartition) a DynmicUiProperty including deprecated org.cesecore.util.ui.PositiveIntegerValidator is added to an ApprovalPartion created and later serialized and stored in the ProfileData.rawData table field.

      To remove the serialized objects in ProfileData.rawData

      • PositiveIntegerValidator has to be restored (done already with ECA-9491 / ECA-9543). PositiveIntegerValidator exists simoultaneously with IntegerValidator of same package until the class is removed.
      • ProfileData has to be stored with a corresponding integer value from now on.
      • The field 'Number of Required Approvals' to read or write this value in edit form for accumlative approval profiles must be considered (might be better without DynmicUiProperty).
      • Initialization and reading data must support interpretation of old data (DynamicUiProperty), marked as deprecated and new data (integer). After profile data concerned has been updated during post upgrade invocation. The functionality can be removed (same time as PositiveIntegerValidator).
      • During post upgrade all accumulative approval profiles must be updated to contain the integer value instead of the DynamicUiProperty.

        Attachments

          Activity

            People

            Assignee:
            anjakobs Andres Jakobs
            Reporter:
            anjakobs Andres Jakobs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2 days, 4 hours
                2d 4h
                Remaining:
                Remaining Estimate - 2 days, 4 hours
                2d 4h
                Logged:
                Time Spent - Not Specified
                Not Specified