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

ServletComponent ignores httpBinding option

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.3
    • Fix Version/s: 2.21.3, 2.22.2, 2.23.0
    • Component/s: camel-servlet
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

       

        Attachments

          Activity

            People

            • Assignee:
              vrlgohel Viral Gohel
              Reporter:
              paulmcculloch Paul McCulloch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: