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

clientToolBox. SCEPTest compares the wrong types in responses

    Details

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

      Description

      In SCEPTest we compare a the wrong types in two places, which probably doesn't do what it expects.

      Line 519:
      if ( responsestatus.equals(ResponseStatus.PENDING.getValue()) || !messageType.equals("3") ) {

      Should probably be;
      if ( responsestatus.equals(ResponseStatus.PENDING.getStringValue()) || !messageType.equals("3") ) {

      Line 621:
      if (altName==null || CertTools.getGeneralNamesFromAltName(altName).equals(expectedAltName)) {

      Should probably be:
      if (altName==null || !CertTools.getGeneralNamesFromAltName(altName).toString().equals(expectedAltName)) {

      Note the added ! there, before I guess we were lucky that the comparison always returned false.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: