Camel
  1. Camel
  2. CAMEL-4521

camel-jetty should apply the Camel message body content as the HTTP request body for HTTP PUT requests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.2, 2.9.0
    • Component/s: camel-jetty
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The camel-jetty JettyHttpProducer only transposes Camel message body content into the HTTP request body if the HTTP method is POST. The component should be updated to also attach body content when the HTTP PUT method is specified. This will better support the expected HTTP method semantics, and will allow camel-jetty to be used as a client for systems that employ the "High REST" architecture paradigm.

        Activity

        Hide
        Rich Newcomb added a comment -

        Attached patch

        Show
        Rich Newcomb added a comment - Attached patch
        Hide
        Claus Ibsen added a comment -

        Could we check the other HTTP producers in

        • camel-ahc
        • camel-http
        • camel-http4

        If they have a similar issue?

        Show
        Claus Ibsen added a comment - Could we check the other HTTP producers in camel-ahc camel-http camel-http4 If they have a similar issue?

          People

          • Assignee:
            David Valeri
            Reporter:
            Rich Newcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development