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

Java type inconsistencies in NameToIdMap

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Reported by analysis tool:

      1.
      Integer is incompatible with expected argument type String Error:
      At InternalKeyBindingMgmtSessionBean.java [line 246] it seems that in method org.cesecore.keybind.internalKeyBindingMgmtSessionBean.getIdFromName(String)
      actual type is Integer and expected is a String. Called Method is java.util.Set.contains(Object).
      "currentId" is passed as argument and Integer.equals(Object) used to determine equality.

      2.
      Integer is incompatible with expected argument type String Error:
      At CryptoTokenManagementSessionBean.java [line 504] it seems that in method
      org.cesecore.keys.token. CryptoTokenManagementSessionBean.getIdFromName(String)
      actual type is Integer and expected is a String. Called Method is java.util.Set.contains(Object).
      "currentId" is passed as argument and Integer.equals(Object) used to determine equality.

        Attachments

          Activity

            People

            Assignee:
            aveen Aveen Ismail (Inactive)
            Reporter:
            tomas Tomas Gustavsson
            Verified by:
            Tomas Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: