You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Paul McCulloch (JIRA)" <ji...@apache.org> on 2018/09/06 16:24:00 UTC

[jira] [Created] (CAMEL-12785) ServletComponent ignores httpBinding option

Paul McCulloch created CAMEL-12785:
--------------------------------------

             Summary: ServletComponent ignores httpBinding option
                 Key: CAMEL-12785
                 URL: https://issues.apache.org/jira/browse/CAMEL-12785
             Project: Camel
          Issue Type: Bug
          Components: camel-servlet
    Affects Versions: 2.18.3
            Reporter: Paul McCulloch


ServletComponent.doCreateConsumer()  seems to consider the 'httpBindingRef' option when deciding whether or not to create a default HttpBinding. However this option was removed in 2.17 (https://github.com/apache/camel/commit/df701cc3776833c98a3e2b53f86dfd8f01eabe4b )

{{<restConfiguration component="servlet" enableCORS="true">}}
{{   <endpointProperty key="servletName" value="MyCamelServlet"/>}}
{{   <endpointProperty key="httpBinding" value="#MyHttpBinding"/>}}
{{</restConfiguration>}}

Doesn't use the custom binding. Providing a value for httpBindingRef causes the endpoint creation to fail (due to unknown parameters being included in the servlet:// URI.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)