Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20151

(7.3.z) KeyStoresTestCase fails on IBM Java 8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.3.4.CR1, 7.3.4.GA
    • 7.3.1.GA
    • Test Suite
    • None
    • +
    • Hide
      mvn clean install -DskipTests=true
      cd elytron
      export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80
      mvn test -Dtest=org.wildfly.extension.elytron.KeyStoresTestCase
      ...
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Failures: 
      [ERROR]   KeyStoresTestCase.testImportCertificateChainReply:648->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportSingleCertificateReply:642->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportTrustedCertificate:777 expected: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportUntrustedCertificateReplyWithoutValidation:695->testImportUntrustedCertificateReply:742 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportUntrustedCertificateWithoutValidation:791->testImportUntrustedCertificate:828 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA>
      [INFO] 
      [ERROR] Tests run: 29, Failures: 5, Errors: 0, Skipped: 0
      
      Show
      mvn clean install -DskipTests=true cd elytron export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80 mvn test -Dtest=org.wildfly.extension.elytron.KeyStoresTestCase ... [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] KeyStoresTestCase.testImportCertificateChainReply:648->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> [ERROR] KeyStoresTestCase.testImportSingleCertificateReply:642->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> [ERROR] KeyStoresTestCase.testImportTrustedCertificate:777 expected: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> [ERROR] KeyStoresTestCase.testImportUntrustedCertificateReplyWithoutValidation:695->testImportUntrustedCertificateReply:742 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> [ERROR] KeyStoresTestCase.testImportUntrustedCertificateWithoutValidation:791->testImportUntrustedCertificate:828 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> [INFO] [ERROR] Tests run: 29, Failures: 5, Errors: 0, Skipped: 0

    Description

      Same issue than WFCORE-5004 but in test case KeyStoresTestCase (inside elytron folder too). It's the same problem with the certificate comparison if using the EMAILADDRESS field. Previously it was hidden by the mock-server issue (WFCORE-5023).

      Attachments

        Issue Links

          Activity

            People

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: