jochenr commented on issue #5218:
URL: https://github.com/apache/camel-quarkus/issues/5218#issuecomment-1708581564

   Hello @ppalaga,
   
   I think I finally managed to build a "working" reproducer:
   
https://github.com/jochenr/my-camel-quarkus-projects/tree/main/camel-quarkus-cxf-soap-wssecurity
   
   Running
   ```
   mvn clean install
   ```
   on the project you should see something like this that showes that the test 
hangs
   
   ```
   2023-09-06 16:55:06,780 INFO  
[org.apa.cxf.ws.sec.wss.pol.AbstractBindingBuilder] (main) No CallbackHandler 
available to retrieve a password. We will now try the crypto properties file 
for a private password
   @QuarkusTest has detected a hang, as there has been no test activity in PT30S
   To configure this timeout use the quarkus.test.hang-detection-timeout config 
property
   A stack trace is below to help diagnose the potential hang
   === Stack Trace ===
   Thread main: TIMED_WAITING
     Stack:
       java.base@17.0.8/java.lang.Object.wait(Native Method)
       
java.base@17.0.8/java.io.PipedInputStream.awaitSpace(PipedInputStream.java:273)
       
java.base@17.0.8/java.io.PipedInputStream.receive(PipedInputStream.java:231)
       
java.base@17.0.8/java.io.PipedOutputStream.write(PipedOutputStream.java:150)
   ```
   
   
   
   If you take a look at
   
https://github.com/jochenr/my-camel-quarkus-projects/blob/main/camel-quarkus-cxf-soap-wssecurity/quarkus-root/src/test/java/de/jochenr/integration/contact/BaseTest.java
   you see that I commented out lines  66 to 87
   this code block:
   ```
       // static {
       //     HTTPConduitConfigurer httpConduitConfigurer = new 
HTTPConduitConfigurer() {
       //         public void configure(String name, String address, 
HTTPConduit c) {
   
       //             TrustManager[] trustManagers = createTrustManagers();
   
       //             TLSClientParameters tlsCP = new TLSClientParameters();
       //             tlsCP.setTrustManagers(trustManagers);
   
       //             // other TLS/SSL configuration like setting up 
TrustManagers
       //             // in case of "localhost" the certname does not match the 
hostname, so ignore it
       //             tlsCP.setDisableCNCheck(isLocalhost(c));
       //             
tlsCP.setUseHttpsURLConnectionDefaultSslSocketFactory(false);
   
       //             c.setTlsClientParameters(tlsCP);
   
       //         }
       //     };
   
       //     final Bus bus = BusFactory.getThreadDefaultBus();
       //     bus.setExtension(httpConduitConfigurer, 
HTTPConduitConfigurer.class);
       // }
   ```
   
   if you uncomment that code-block the test is running as it should.
   
   
   BUT:
   
   In my real application I do not have self-signed certificates.
   I expect do not need any code for the truststore, because our (custom) 
Root-CA is registered in the "cacerts" of our Java installations. So all of 
your certificates should be trusted "out of the box".
   
   The behaviour is really different from Quarkus 3.0.3,Final. Because if you 
switch to that version the example is not working any more?!?
   
   Can you please have a look?
   
   Thank you
   Jochen
   
   
   
   


-- 
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-unsubscr...@camel.apache.org

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

Reply via email to