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

CertificateRetrievalTest.test09FindWithMissingCertData assumes database.useSeparateCertificateTable=false

    Details

    • Type: Bug
    • 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:

      Description

      org.ejbca.core.ejb.ca.store.CertificateRetrievalTest.test09FindWithMissingCertData() assumes that database.useSeparateCertificateTable=false in conf/database.properties.

      The test invokes org.ejbca.core.ejb.ca.caadmin.CAAdminTestSessionBean:

          public void clearCertData(Certificate cert) {
              final String fingerprint = CertTools.getFingerprintAsString(cert);
              CertificateData data = certificateDataSession.findByFingerprint(fingerprint);
              data.setBase64Cert("");
          }
      

      to clean out the base64 encoded cert, but should take org.cesecore.config.CesecoreConfiguration.useBase64CertTable() into account and only clear the right thing to simulate that the b64-encoded cert was never stored during issuance.

        Attachments

          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:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m