You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/10/27 12:34:14 UTC

[GitHub] [camel-quarkus] ppalaga opened a new pull request, #4219: Add WS-Trust test for CXF SOAP

ppalaga opened a new pull request, #4219:
URL: https://github.com/apache/camel-quarkus/pull/4219

   @ffang this is an attempt to port [this](https://github.com/quarkiverse/quarkus-cxf/tree/main/integration-tests/ws-trust) test from Quarkiverse CXF to Camel Quarkus. The only significant change is how the service using STS is set up: While in Quarkiverse CXF it is a `@WebService` annotated class [TrustHelloServiceImpl](https://github.com/quarkiverse/quarkus-cxf/blob/main/integration-tests/ws-trust/src/main/java/io/quarkiverse/cxf/it/ws/trust/server/TrustHelloServiceImpl.java), in CQ it is a [Camel route](url) with an `cxf:bean` endpoint. 
   
   It works well in Quarkiverse CXF, but fails in CQ with the following error: 
   
   ```
   [WARN] [stderr] org.apache.cxf.binding.soap.SoapFault: BSP:R3227: A SECURITY_HEADER MUST NOT contain more than one TIMESTAMP
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:238)
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:382)
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:213)
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:123)
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JInInterceptor.handleMessage(PolicyBasedWSS4JInInterceptor.java:76)
   [WARN] [stderr]         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
   [WARN] [stderr]         at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:829)
   [WARN] [stderr]         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1701)
   [WARN] [stderr]         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570)
   [WARN] [stderr]         at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
   [WARN] [stderr]         at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
   [WARN] [stderr]         at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
   [WARN] [stderr]         at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
   [WARN] [stderr]         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
   [WARN] [stderr]         at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:528)
   [WARN] [stderr]         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:439)
   [WARN] [stderr]         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:354)
   [WARN] [stderr]         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:312)
   [WARN] [stderr]         at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
   [WARN] [stderr]         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
   [WARN] [stderr]         at com.sun.proxy.$Proxy124.sayHello(Unknown Source)
   [WARN] [stderr]         at org.apache.camel.quarkus.component.cxf.soap.it.ws.trust.CxfWsTrustTest.programmaticSts(CxfWsTrustTest.java:95)
   [WARN] [stderr]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [WARN] [stderr]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   [WARN] [stderr]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [WARN] [stderr]         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   [WARN] [stderr]         at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:1099)
   [WARN] [stderr]         at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:918)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   [WARN] [stderr]         at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
   [WARN] [stderr]         at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
   [WARN] [stderr]         at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
   [WARN] [stderr]         at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
   [WARN] [stderr]         at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
   [WARN] [stderr]         at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
   [WARN] [stderr]         at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   [WARN] [stderr]         at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   [WARN] [stderr]         at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   [WARN] [stderr]         at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
   [WARN] [stderr]         at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
   [WARN] [stderr]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
   [WARN] [stderr]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
   [WARN] [stderr]         at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
   [WARN] [stderr]         at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
   [WARN] [stderr]         at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150)
   [WARN] [stderr]         at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124)
   [WARN] [stderr]         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
   [WARN] [stderr]         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
   [WARN] [stderr]         at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
   [WARN] [stderr]         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
   [WARN] [stderr] Caused by: org.apache.wss4j.common.ext.WSSecurityException: BSP:R3227: A SECURITY_HEADER MUST NOT contain more than one TIMESTAMP
   [WARN] [stderr]         at org.apache.wss4j.common.bsp.BSPEnforcer.handleBSPRule(BSPEnforcer.java:57)
   [WARN] [stderr]         at org.apache.wss4j.dom.engine.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:329)
   [WARN] [stderr]         at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:326)
   [WARN] [stderr]         ... 92 more
   ```
   
   Any idea why this happens and how to fix it?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] ppalaga closed pull request #4219: Add WS-Trust test for CXF SOAP

Posted by GitBox <gi...@apache.org>.
ppalaga closed pull request #4219: Add WS-Trust test for CXF SOAP
URL: https://github.com/apache/camel-quarkus/pull/4219


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] ppalaga commented on pull request #4219: Add WS-Trust test for CXF SOAP

Posted by GitBox <gi...@apache.org>.
ppalaga commented on PR #4219:
URL: https://github.com/apache/camel-quarkus/pull/4219#issuecomment-1296761971

   Any idea @ffang where to look for the cause of multiple timestamps being added? The same issue happens in this WS-SecurityPolicy test: https://github.com/apache/camel-quarkus/pull/4224


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] ppalaga commented on pull request #4219: Add WS-Trust test for CXF SOAP

Posted by GitBox <gi...@apache.org>.
ppalaga commented on PR #4219:
URL: https://github.com/apache/camel-quarkus/pull/4219#issuecomment-1327921775

   Replaced by https://github.com/apache/camel-quarkus/pull/4224 which contains a workaround test. The double timestamp is still a problem and has its own issue https://github.com/apache/camel-quarkus/issues/4291


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org