Oleksandr Kholod created CMIS-1086:
---------------------------------------
Summary: PortCMIS AtomPubParser closes input stream twice.
Key: CMIS-1086
URL: https://issues.apache.org/jira/browse/CMIS-1086
Project: Chemistry
Issue Type: Bug
Components: portcmis
Affects Versions: PortCMIS 0.3.0
Reporter: Oleksandr Kholod
PortCMIS.Binding.AtomPub.AtomPubParser in Parse method closes input stream
twice:
{code:java}
...
finally
{
parser.Dispose();
// make sure the stream is read and closed in all cases
IOUtils.ConsumeAndClose(stream);
}
{code}
parser.Dispose(); disposes stream because it is created with option 'CloseInput
= true' in XmlUtils, and IOUtils.ConsumeAndClose(stream); tries to dispose same
stream again and causes a bunch of exceptions being thrown.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)