You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Oleksandr Kholod (Jira)" <ji...@apache.org> on 2020/02/27 14:16:00 UTC
[jira] [Created] (CMIS-1086) PortCMIS AtomPubParser closes input
stream twice.
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)