Sergey Beryozkin created CXF-7514:
-------------------------------------

             Summary: 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
             Fix For: 3.2.1


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
(v6.4.14#64029)

Reply via email to