Issue 244 in glassdb: unzip errors on .mcz files , _decompressBytes fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 244 in glassdb: unzip errors on .mcz files , _decompressBytes fails

glassdb
Status: Accepted
Owner: [hidden email]
Labels: Type-Defect Priority-Medium GLASS-Server Version-GLASS0.231  
bugid-38576 Milestone-1.0-beta.8.6

New issue 244 by [hidden email]: unzip errors on .mcz files ,  
_decompressBytes fails
http://code.google.com/p/glassdb/issues/detail?id=244

 From the GemStone bug report:

Most of the .mcz packages that we have in CVS in
gss64bit/examples/monticello/repository
won't unzip cleanly. unzip reports "missing 1 bytes"

This causes the _decompressBytes primitive to fail when loading a .mcz file
and decompression falls back to the slower Smalltall implementation.

Example:

% unzip -l GsRandom-dkh.6.mcz
Archive: GsRandom-dkh.6.mcz
error [GsRandom-dkh.6.mcz]: missing 1 bytes in zipfile
(attempting to process anyway)
Length Date Time Name
------ ---- ---- ----
17 01-29-08 13:19 package
1444 01-29-08 13:19 version
5639 01-29-08 13:19 snapshot/source.st
6040 01-29-08 13:19 snapshot.bin
------ -------
13140 4 files


Reply | Threaded
Open this post in threaded view
|

Re: Issue 244 in glassdb: unzip errors on .mcz files , _decompressBytes fails

glassdb

Comment #1 on issue 244 by [hidden email]: unzip errors on .mcz files ,  
_decompressBytes fails
http://code.google.com/p/glassdb/issues/detail?id=244

Looks like the following will do the trick (ZipArchive>>writeTo:):

writeTo: stream
        members do: [ :member |
                member writeTo: stream.
                member endRead.
        ].
        writeCentralDirectoryOffset := stream position - 1.
        self writeCentralDirectoryTo: stream.
       

Reply | Threaded
Open this post in threaded view
|

Re: Issue 244 in glassdb: unzip errors on .mcz files , _decompressBytes fails

glassdb
Updates:
        Status: Fixed
        Labels: Fixed-1.0-beta.8.6

Comment #2 on issue 244 by [hidden email]: unzip errors on .mcz files ,  
_decompressBytes fails
http://code.google.com/p/glassdb/issues/detail?id=244

confirmed by Johan...

Name: Core-DaleHenrichs.39
Author: DaleHenrichs
Time: 02/23/2011, 10:15:34
UUID: fe19c944-b7b4-4911-8422-27ec8f013c3a
Ancestors: Core-DaleHenrichs.38