[Mono-bugs] [Bug 80401][Wis] New - Handling of BZIP2 files

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 29 17:55:43 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by david.rowntree at dsl.pipex.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80401

--- shadow/80401	2006-12-29 17:55:43.000000000 -0500
+++ shadow/80401.tmp.1082	2006-12-29 17:55:43.000000000 -0500
@@ -0,0 +1,88 @@
+Bug#: 80401
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Suse 10.1 / mono 1.1.13.7
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: SharpZipLib
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: david.rowntree at dsl.pipex.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Handling of BZIP2 files
+
+Description of Problem:
+Using beagle (which is uses mono/sharpziplib) to index bzip2 compressed
+files, gives following error
+
+Steps to reproduce the problem:
+dave at beaglebox:/raid/TEST_ARCHIVE/t> echo "this is a test" >file.txt
+dave at beaglebox :/raid/TEST_ARCHIVE/t> bzip2 file.txt
+dave at beaglebox:/raid/TEST_ARCHIVE/t> beagle-extract-content file.txt.bz2
+
+Actual Results:
+dave at beaglebox:/raid/TEST_ARCHIVE/t> beagle-extract-content file.txt.bz2
+Filename: file:///raid/TEST_ARCHIVE/t/file.txt.bz2
+Debug: Loaded 53 filters from /usr/local/lib/beagle/Filters/Filters.dll
+Warn: Unable to filter /raid/TEST_ARCHIVE/t/file.txt.bz2:
+ICSharpCode.SharpZipLib.BZip2.BZip2Exception: BZip2 input stream bad block
+header
+in <0x00024> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:BadBlockHeader ()
+in <0x00112> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:InitBlock ()
+in <0x000a9> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:SetupNoRandPartA ()
+in <0x00028> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:SetupNoRandPartB ()
+in <0x00061> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:ReadByte ()
+in <0x00015> ICSharpCode.SharpZipLib.BZip2.BZip2InputStream:Read
+(System.Byte[] b, Int32 offset, Int32 count)
+in [0x0003a] (at /home/dave/src/beagle-0.2.14/Filters/FilterArchive.cs:178)
+Beagle.Filters.FilterArchive:StoreStreamInTempFile (System.IO.Stream
+stream, DateTime mtime)
+in [0x00047] (at /home/dave/src/beagle-0.2.14/Filters/FilterArchive.cs:250)
+Beagle.Filters.FilterArchive:GetNextEntrySingle ()
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_FilterArchive/ArchiveEntry ()
+in [0x0014f] (at /home/dave/src/beagle-0.2.14/Filters/FilterArchive.cs:150)
+Beagle.Filters.FilterArchive:DoPullSetup ()
+in [0x000eb] (at /home/dave/src/beagle-0.2.14/beagled/Filter.cs:545)
+Beagle.Daemon.Filter:Open (System.IO.FileSystemInfo info)
+No filter for application/x-bzip
+
+
+dave at beaglebox:/raid/TEST_ARCHIVE> bzip2 --version
+bzip2, a block-sorting file compressor.  Version 1.0.3, 15-Feb-2005.
+
+<snip>
+
+dave at beaglebox :/raid/TEST_ARCHIVE> mcs --version
+Mono C# compiler version 1.1.13.7
+
+
+Expected Results:
+Something like below: (except the file would be .bz2)
+dave at beaglebox:/raid/TEST_ARCHIVE/t> echo "this is a test" >file.txt
+dave at beaglebox :/raid/TEST_ARCHIVE/t> beagle-extract-content file.txt
+Filename: file:///raid/TEST_ARCHIVE/t/file.txt
+Debug: Loaded 53 filters from /usr/local/lib/beagle/Filters/Filters.dll
+Filter: Beagle.Filters.FilterText
+MimeType: text/plain
+
+Properties:
+  Timestamp = 2006-12-22 01:21:14 +00:00
+
+Content:
+this is a test
+
+(no hot content)
+
+
+
+How often does this happen? 
+
+Every file that is bzip2'd
+
+Additional Information:


More information about the mono-bugs mailing list