cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7514) IOUtils.isEmpty returns false if isAvailable is zero and no marks are supported
Date Fri, 22 Sep 2017 16:41:00 GMT
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)

Mime
View raw message