cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Resolved] (CXF-4760) Provide ability to disable chunked transfer encoding for BinaryDataProvider
Date Fri, 18 Jan 2013 12:39:23 GMT


Sergey Beryozkin resolved CXF-4760.

    Resolution: Fixed
      Assignee: Sergey Beryozkin

Hi - this was disabled in 2.7.x because there were issues with applying GZIP on top of byte
arrays; I've updated the runtime to optionally put Content-Length again specifically for byte
arrays, but org.apache.cxf.jaxrs.provider.BinaryDataProvider will actually have to be configured
explicitly and have its newly introduced "reportByteArraySize" boolean property set to 'true'
- the RS runtime itself can not guarantee some follow-up CXF interceptors like GZIP one won't
affect the length - so if the user knows that it is safe then this new property has to be

> Provide ability to disable chunked transfer encoding for BinaryDataProvider
> ---------------------------------------------------------------------------
>                 Key: CXF-4760
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS, Transports
>    Affects Versions: 2.7.0, 2.7.1, 2.7.2
>            Reporter: Owen Farrell
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.7.3
>         Attachments: curl-cxf26.txt, curl-cxf27.txt
> As of CXF 2.7.0, the JAX-RS BinaryDataProvider now uses chunked transfer encoding by
default for byte[] responses. All 2.6.x releases provide the Content-Length header as part
of the response.
> I've found documentation on disabling chunked encoding for a JAX-RS client. Is it possible
to disable chunked encoding for a JAX-RS server?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message