Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-1086

PortCMIS AtomPubParser closes input stream twice.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • PortCMIS 0.3.0
    • None
    • portcmis
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Oleksandr_Kholod Oleksandr Kholod
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: