[
https://issues.apache.org/jira/browse/CXF-7514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colm O hEigeartaigh resolved CXF-7514.
--------------------------------------
Resolution: Won't Fix
> IOUtils.isEmpty returns false if isAvailable is zero and no marks are
> supported
> --------------------------------------------------------------------------------
>
> Key: CXF-7514
> URL: https://issues.apache.org/jira/browse/CXF-7514
> Project: CXF
> Issue Type: Bug
> Components: Core, JAX-RS
> Reporter: Sergey Beryozkin
> Priority: Major
>
> https://issues.apache.org/jira/browse/CXF-6891
> was about supporting the non-empty streams which return isAvailable=0 and
> support no marks.
> The problem is, if the stream is really empty in such cases (ex DELETE) then
> the JAX-RS filter code, 'hasEntity' has no way to return 'false' unless
> Content-Length=0 is also set (which is not available with DELETE).
> I suspect that for 3.2.1, we actually need to return IOUtils.isEmpty() = true
> if the stream isAvailable == 0 and stream.markSupported == false. And add a
> property to assume the stream is non-empty under these conditions to support
> a CXF-6891 case...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)