You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2019/04/18 10:08:00 UTC

[jira] [Commented] (CXF-8018) setAllowChunking and org.apache.cxf.jaxrs.client.WebClient

    [ https://issues.apache.org/jira/browse/CXF-8018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16820934#comment-16820934 ] 

Colm O hEigeartaigh commented on CXF-8018:
------------------------------------------

clientPolicy.isSetAllowChunking() just returns whether the default value was changed or not. Instead, clientPolicy.isAllowChunking() should return false for your use-case.

> setAllowChunking and org.apache.cxf.jaxrs.client.WebClient
> ----------------------------------------------------------
>
>                 Key: CXF-8018
>                 URL: https://issues.apache.org/jira/browse/CXF-8018
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Eric Schwarzenbach
>            Priority: Major
>
> Given a org.apache.cxf.jaxrs.client.WebClient object, created like
> WebClient client = WebClient.create(extSysUrl);
> executing
> HTTPClientPolicy clientPolicy = WebClient.getConfig(client).getHttpConduit().getClient()
> clientPolicy.setAllowChunking(false);
> does not seem to work. Immediately after this calling
> clientPolicy.isSetAllowChunking() returns true.
> Calling
> clientPolicy.unsetAllowChunking();
> seems to have somewhat more effect as after this 
> clientPolicy.isSetAllowChunking() returns false.
> However the Response received after calling client.invoke() has a header of "transfer-encoding" set to "chunked" leading me to doubt that chunking is actually disabled. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)