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

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

     [ https://issues.apache.org/jira/browse/CAMEL-12785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino resolved CAMEL-12785.
--------------------------------------
    Resolution: Fixed

> 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
>            Assignee: Viral Gohel
>            Priority: Major
>             Fix For: 2.21.3, 2.22.2, 2.23.0
>
>
> 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)