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

        Rich Newcomb created issue -
        Hide
        Rich Newcomb added a comment -

        Attached patch

        Show
        Rich Newcomb added a comment - Attached patch
        Rich Newcomb made changes -
        Field Original Value New Value
        Attachment CAMEL-4521-camel-jetty-trunk.patch [ 12497899 ]
        David Valeri made changes -
        Assignee David Valeri [ davaleri ]
        David Brandon Valeri <dvaleri@apache.org> committed 105bcdaa8ba0cc7c81e00ab1f9791907712b6683 (2 files)
        Reviews: none

        [CAMEL-4521] Apply the Camel message body content as the HTTP request body for HTTP PUT requests. Patch applied with thanks to Rich Newcomb.
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1179889 13f79535-47bb-0310-9956-ffa450edef68

        dvaleri committed 1179889 (2 files)
        David Valeri made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        David Valeri made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.9.0 [ 12316374 ]
        Resolution Fixed [ 1 ]
        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?
        J. Daniel Kulp <dkulp@apache.org> committed a3c14b318adc4a16e18024db5cc373c5d7288ac7 (2 files)
        Reviews: none

        Merged revisions 1179889 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk
        ........
          r1179889 | dvaleri | 2011-10-06 18:42:46 -0400 (Thu, 06 Oct 2011) | 1 line
          
          [CAMEL-4521] Apply the Camel message body content as the HTTP request body for HTTP PUT requests. Patch applied with thanks to Rich Newcomb.
        ........


        git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-2.8.x@1182181 13f79535-47bb-0310-9956-ffa450edef68

        Daniel Kulp committed 1182181 (3 files)
        Reviews: none

        Merged revisions 1179889 via svnmerge from
        https://svn.apache.org/repos/asf/camel/trunk

        ........
          r1179889 | dvaleri | 2011-10-06 18:42:46 -0400 (Thu, 06 Oct 2011) | 1 line
          
          [CAMEL-4521] Apply the Camel message body content as the HTTP request body for HTTP PUT requests. Patch applied with thanks to Rich Newcomb.
        ........

        Daniel Kulp made changes -
        Fix Version/s 2.8.2 [ 12317866 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development