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

RestBindingMode auto not honored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.17.0
    • Fix Version/s: 2.17.1, 2.18.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The usage of rest binding mode is confusing/doesn't work consistently.

      If you look at the field definition:

          @XmlAttribute @Metadata(defaultValue = "auto")
          private RestBindingMode bindingMode;
      

      You would expect that the default value is "auto" but in fact there is no default when running.

      You need to explicitly set it in configuration, like this:

      restConfiguration()
                      .component("jetty")
                      .port(9097)
                      .bindingMode(RestBindingMode.auto)
              ;
      

        Attachments

          Activity

            People

            • Assignee:
              johndament John D. Ament
              Reporter:
              johndament John D. Ament
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: