Uploaded image for project: '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
    • Status: Resolved
    • Priority: 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
        rnewcomb Rich Newcomb added a comment -

        Attached patch

        Show
        rnewcomb Rich Newcomb added a comment - Attached patch
        Hide
        davsclaus 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
        davsclaus 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:
            davaleri David Valeri
            Reporter:
            rnewcomb Rich Newcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development