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

ServletComponent ignores httpBinding option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.3
    • 2.21.3, 2.22.2, 2.23.0
    • camel-servlet
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: