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

Backport - ClassCastException on Wildfly 14 when saving a certificate profile with "Subject DN Subset" enabled

    Details

    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Team Bob - 2019 w51

      Description

      The aim of this ticket is to backport the patch provided in ECA-8756 to the 7.3.1.X-branch.

      When saving a certificate profile with "Subject DN Subset" enabled in Wildfly 14, the following stacktrace is produced (on DEBUG level).

      java.lang.Integer cannot be cast to java.lang.String: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
      	at org.cesecore.certificates.certificateprofile.CertificateProfile.setSubjectDNSubSet(CertificateProfile.java:1593) [cesecore-common.jar:EJBCA 7.3.0 Enterprise (33448)]
      

      The solution is to use a JSF converter to ensure that the input is always given as a list of integers.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bastianf Bastian Fredriksson
              Reporter:
              bastianf Bastian Fredriksson
              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 - 1 hour
                  1h
                  Remaining:
                  Time Spent - 10 minutes Remaining Estimate - 50 minutes
                  50m
                  Logged:
                  Time Spent - 10 minutes Remaining Estimate - 50 minutes
                  10m