Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
PortCMIS 0.3.0
-
None
-
None
Description
PortCMIS.Binding.AtomPub.AtomPubParser in Parse method closes input stream twice:
... finally { parser.Dispose(); // make sure the stream is read and closed in all cases IOUtils.ConsumeAndClose(stream); }
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.