Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4457

Default SSLContext testing in Elytron test cases breaking SubsystemTransformersTestCase downloads.

    Details

    • Steps to Reproduce:
      Hide

      From master.

      mvn clean install -DskipTests
      cd elytron
      rm -fR ~/.m2/repository/org/wildfly/core/wildfly-elytron-integration/6.0.1.Final/
      

      Edit the Elytron subsystem pom and add the following to the surefire configuration: -

      <runOrder>alphabetical</runOrder>
      

      Now execute: -

      mvn test -Dtest=CertificateAuthoritiesTestCase,SubsystemTransformerTestCase
      
      Show
      From master. mvn clean install -DskipTests cd elytron rm -fR ~/.m2/repository/org/wildfly/core/wildfly-elytron-integration/6.0.1.Final/ Edit the Elytron subsystem pom and add the following to the surefire configuration: - <runOrder>alphabetical</runOrder> Now execute: - mvn test -Dtest=CertificateAuthoritiesTestCase,SubsystemTransformerTestCase

      Description

      In certain environments this is causing failures such as: -

      [ERROR] testRejectingTransformersEAP720(org.wildfly.extension.elytron.SubsystemTransformerTestCase)  Time elapsed: 1.17 s  <<< ERROR!
      java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.wildfly.core:wildfly-elytron-integration:jar:6.0.1.Final from/to product-repository (https://maven.repository.redhat.com/ga/): sun.security.validator.ValidatorException: No trusted certificate found
              at org.jboss.as.model.test.MavenUtil.createMavenGavURL(MavenUtil.java:142)
              at org.jboss.as.model.test.ChildFirstClassLoaderBuilder.addMavenResourceURL(ChildFirstClassLoaderBuilder.java:198)
              at org.jboss.as.subsystem.test.SubsystemTestDelegate$LegacyKernelServiceInitializerImpl.addMavenResourceURL(SubsystemTestDelegate.java:717)
              at org.wildfly.extension.elytron.SubsystemTransformerTestCase.testRejectingTransformers(SubsystemTransformerTestCase.java:178)
              at org.wildfly.extension.elytron.SubsystemTransformerTestCase.testRejectingTransformersEAP720(SubsystemTransformerTestCase.java:90)
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.wildfly.core:wildfly-elytron-integration:jar:6.0.1.Final from/to product-repository (https://maven.repository.redhat.com/ga/): sun.security.validator.ValidatorException: No trusted certificate found
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
              at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:260)
              at org.jboss.as.model.test.MavenUtil.createMavenGavURL(MavenUtil.java:140)
              ... 4 more
      Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.wildfly.core:wildfly-elytron-integration:jar:6.0.1.Final from/to product-repository (https://maven.repository.redhat.com/ga/): sun.security.validator.ValidatorException: No trusted certificate found
              at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
              at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:365)
              at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
              at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:583)
              at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:259)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:498)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
              ... 8 more
      Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
              at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
              at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
              at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
              at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
              at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
              at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
              at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
              at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
              at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
              at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:296)
              at org.eclipse.aether.transport.http.HttpTransporter.implPeek(HttpTransporter.java:240)
              at org.eclipse.aether.spi.connector.transport.AbstractTransporter.peek(AbstractTransporter.java:51)
              at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PeekTaskRunner.runTask(BasicRepositoryConnector.java:386)
              at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:360)
              ... 13 more
      Caused by: sun.security.validator.ValidatorException: No trusted certificate found
              at org.wildfly.extension.elytron.SSLDefinitions$DelegatingTrustManager.checkServerTrusted(SSLDefinitions.java:853)
              ... 29 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dlofthouse Darran Lofthouse
                Reporter:
                dlofthouse Darran Lofthouse
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: