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

External RA: RaMasterApiProxyBean method getApiVersion() returns 0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not needed to fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Sprint 7

      Description

      This is not a problem when the CA is the only connected node in the cluster. To reproduce this, create an external RA setup with an outgoing peer connector from the CA to the RA.

      PeerRaSlaveMessageHandoff.java
      public PeerMessage responseFromMasterHandOff(final PeerRaSlaveMessage peerRaSlaveMessage) {
      ...
          final int apiVersion = peerRaSlaveMessage.getApiVersion();
          if (lowestConnectedApiVersion>apiVersion) {
              // Older CA has reconnected after downtime
              lowestConnectedApiVersion = apiVersion;
              lowestConnectedApiVersionConnectTime = start;
      ...
      }
      

      peerRaSlaveMessage.getApiVersion() frequently incorrectly returns 0, even though the lowest connected API version has a higher API version. This makes lowestConnectedApiVersion constantly being set to 0.

      In turn, the method getApiVersion() in RaMasterApiProxyBean returns 0 for all the nodes in the cluster which disables features which requires a higher API version (for example RA Web end entity status change, see ECA-6433).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oskar.eriksson@primekey.com Oskar Eriksson (Inactive)
                Reporter:
                oskar.eriksson@primekey.com Oskar Eriksson (Inactive)
                Verified by:
                Henrik Sunmark
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: