]
Darran Lofthouse updated WFCORE-4457:
-------------------------------------
Summary: Default SSLContext testing in Elytron test cases breaking
SubsystemTransformersTestCase downloads. (was: Default SSLContext testing in
SubsystemTransformersTestCase affecting downloads.)
Default SSLContext testing in Elytron test cases breaking
SubsystemTransformersTestCase downloads.
--------------------------------------------------------------------------------------------------
Key: WFCORE-4457
URL:
https://issues.jboss.org/browse/WFCORE-4457
Project: WildFly Core
Issue Type: Bug
Components: Security
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Priority: Blocker
Fix For: 9.0.0.Beta4
In certain environments this is causing failures such as: -
{noformat}
[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.wildfl
{noformat}