[
https://issues.apache.org/jira/browse/CXF-6638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14953336#comment-14953336
]
Sergey Beryozkin commented on CXF-6638:
---------------------------------------
On the trunk and in 3.0.x we have this test:
https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java#L94
Can you prototype some code here showing how you do a PATCH call in CXF 2.7.x,
I'm presuming with WebClient ?
FYI, in CXF 2.7.x we have something like:
https://github.com/apache/cxf/blob/2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java#L83
it is not PATCH but a custom RETRIEVE, but it is the same really...
Though the fact chunking is not supported now for PATCH/etc is a problem of its
own but I'm not sure it in itself is a blocker
> AsyncHTTPConduit does not allow body payloads with "PATCH" method
> -----------------------------------------------------------------
>
> Key: CXF-6638
> URL: https://issues.apache.org/jira/browse/CXF-6638
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 2.7.14
> Reporter: Ramesh Reddy
>
> 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
> {code}
> protected boolean isChunkingSupported(Message message, String httpMethod)
> {
> if ("PATCH".equals(httpMethod)) {
> return true;
> }
> return super.isChunkingSupported(message, httpMethod);
> }
> {code}
> There may be other methods this need to support.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)