[Mono-bugs] [Bug 668494] System.Io.Compression.DeflateStream not working

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 12 00:11:16 EST 2011



Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |RESOLVED
                 CC|                            |gonzalo at novell.com
       InfoProvider|gtissington at gmail.com       |
         Resolution|                            |FIXED
         AssignedTo|mono-bugs at lists.ximian.com  |gonzalo at novell.com

--- Comment #5 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2011-02-12 05:11:15 UTC ---
Garth, there are 2 problems with the test and 1 with mono (that I have just
fixed in mono-2-6, mono-2-8, mono-2-10 and master):
  1. In your test, nothing is calling Close () on the compressed streams. That
creates files that, when decompressed with, say, gunzip, will produce and
'unexpected end of file' error.
  2. You are flushing the non-compressed streams which don't know anything
about the compressed streams built on top of them.

As for the Mono error, when Flush() is called on the compressed stream (from
the XmlSerializer, your code does not call it) we don't produce any output
since it would be a partial flush. Apparently, MS does, so I have changed the
code in mono to behave as MS and now you can run your test and get the same
results as on MS (but you should call Close() to write the end marker and avoid

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list