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
- clones
-
ECA-6186 PeerRaMasterServiceThreadBean compares the wrong type in keepServingRaPeer
-
- Closed
-