Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12728

Configured SSL Context on Undertow component not honored by camel-rest-swagger

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.0
    • Fix Version/s: 2.23.0
    • Component/s: camel-rest-swagger
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Say you have:

          <camel:sslContextParameters id="sslContextParameters">
              <camel:trustManagers>
                  <camel:keyStore password="redhat123" type="JKS" ... />
              </camel:trustManagers>
          </camel:sslContextParameters>
      
      .. and ..
      
          <bean id="myundertow" class="org.apache.camel.component.undertow.UndertowComponent">
              <property name="sslContextParameters" value="#{sslContextParameters}"/>
          </bean>
      
      
      .. and ..
      
          <to id="_to1" pattern="InOut" uri="rest-swagger:swagger.json#getMembersList?basePath=/membersweb/rest/v2&amp;componentName=myundertow&amp;host=https://myapp.demolab.local:443”/>

      It will fail with

      java.io.IOException: UT000065: SSL must be specified to connect to a https URL
      	at io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:72)
      	at io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:60)
      	at io.undertow.client.UndertowClient.connect(UndertowClient.java:133)
      	at org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:165)
      	at org.apache.camel.component.rest.RestProducer.process(RestProducer.java:86)
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      

        Attachments

          Activity

            People

            • Assignee:
              zregvart Zoran Regvart
              Reporter:
              chirino Hiram R. Chirino
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: