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

AsyncHTTPConduit does not allow body payloads with "PATCH" method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.14
    • Fix Version/s: 2.7.18, 3.0.7, 3.1.4
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: