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

PeerConnectionsTest.testPublishCertificate should inform about prerequisite in failure message

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.0.0, EJBCA 6.15.2
    • Component/s: None
    • Labels:
      None

      Description

      org.ejbca.peerconnector.publisher.PublishCertificateMessage.instance(...) depends on CesecoreConfiguration.useBase64CertTable() to determine if Base64CertData should be written to the VA instead of copying the state of the CA.

      This works as on the server JVM, but PublishCertificateMessage.instance(...) is also invoked from JUnit tests client JVM where the logic fails unless database.useSeparateCertificateTable is consistent with the setting on the server JVM.

      In a perfect world should not rely on PublishCertificateMessage.instance(...) since it can change over time, but the scope of this ticket should ensure that the test PeerConnectionsTest.testPublishCertificate() fails with a clear error message about this hidden prerequisite.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              johan Johan Eklund
              Reporter:
              johan Johan Eklund
              Verified by:
              Samuel Lidén Borell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: