Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6638

AsyncHTTPConduit does not allow body payloads with "PATCH" method

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.14
    • 2.7.18, 3.0.7, 3.1.4
    • Transports
    • None
    • Unknown

    Description

      When using "PATCH" http method using the Async Http Transport, the payload is always null.

      After debugging, I saw that AsyncHTTPConduit class does not override the "isChunkingSupported" method. Something like following is needed to be added to this class to allow PATCH call with payload

          protected boolean isChunkingSupported(Message message, String httpMethod) {
              if ("PATCH".equals(httpMethod)) { 
                  return true;
              }
              return super.isChunkingSupported(message, httpMethod);
          }
      

      There may be other methods this need to support.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sergey_beryozkin Sergey Beryozkin
            rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment