-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure on zipfiles created by some unix utilities #221
Comments
@malahx, I don't suppose you can tell me which utility you're using to create your zip-files, could you? That will help me in writing a test case for this. |
And of course it looks like there's already a fix that just hasn't been applied to the upstream repo. |
For zip, I use: |
Awesome. I can reproduce this with file-roller and have a test case. I'm still trying to figure out how we can get around this. (file-roller is fine, the zip library we're using has a bug) |
I'm building my own patched SharpZipLib. In case anyone ever needs to repeat this:
|
Uses the patch from icsharpcode/SharpZipLib#53 . Thank you, @Novn, for writing this. Uses the build fixes from https://github.com/Arakis/SharpZipLib for Mono. Thank you, @arakis, for providing these. The branch I built from is at https://github.com/pjf/SharpZipLib/tree/ckan_gh221 Attentioning @bastianeicher who is maintaining a totally awesome SharpZipLib patches branch. @Novn's patch above fixes the bug described at http://community.sharpdevelop.net/forums/t/21758.aspx . There's a test file at https://github.com/pjf/CKAN/blob/221_ziplib/t/data/gh221.zip which shows the presence of the bug when combined with the test at https://github.com/pjf/CKAN/blob/221_ziplib/CKAN/Tests/ZipLib.cs . Closes KSP-CKAN#221. Closes KSP-CKAN/CKAN-meta#33 @malahx: I'll be releasing an updated CKAN client shortly with these fixes.
Uses the patch from icsharpcode/SharpZipLib#53 . Thank you, @Novn, for writing this. Uses the build fixes from https://github.com/Arakis/SharpZipLib for Mono. Thank you, @arakis, for providing these. The branch I built from is at https://github.com/pjf/SharpZipLib/tree/ckan_gh221 Attentioning @bastianeicher who is maintaining a totally awesome SharpZipLib patches branch. @Novn's patch above fixes the bug described at http://community.sharpdevelop.net/forums/t/21758.aspx . There's a test file at https://github.com/pjf/CKAN/blob/221_ziplib/t/data/gh221.zip which shows the presence of the bug when combined with the test at https://github.com/pjf/CKAN/blob/221_ziplib/CKAN/Tests/ZipLib.cs . Closes KSP-CKAN#221. Closes KSP-CKAN/CKAN-meta#33 @malahx: I'll be releasing an updated CKAN client shortly with these fixes.
@malahx : This is now released in v0.18.1 : https://github.com/KSP-CKAN/CKAN/releases It may take a few minutes for our build system to attach the executables, but it should mean that files compressed with file-roller will be readable. Thanks again for the cool bug report. :) |
Thank you, but I'm a bug magnet, sorry. [malah@arch-desktop Kerbal Space Program]$ mono ckan.exe version [malah@arch-desktop Kerbal Space Program]$ mono ckan.exe gui --debug > log.txt If you search the full log: https://www.dropbox.com/s/05m4520grvrw8b2/log-2014-10-31-1734.txt?dl=0 Again thank you, for all this work :) |
The next time, I will learn to use it ;) Thanks |
Uses the patch from icsharpcode/SharpZipLib#53 . Thank you, @Novn, for writing this. Uses the build fixes from https://github.com/Arakis/SharpZipLib for Mono. Thank you, @arakis, for providing these. The branch I built from is at https://github.com/pjf/SharpZipLib/tree/ckan_gh221 Attentioning @bastianeicher who is maintaining a totally awesome SharpZipLib patches branch. @Novn's patch above fixes the bug described at http://community.sharpdevelop.net/forums/t/21758.aspx . There's a test file at https://github.com/pjf/CKAN/blob/221_ziplib/t/data/gh221.zip which shows the presence of the bug when combined with the test at https://github.com/pjf/CKAN/blob/221_ziplib/CKAN/Tests/ZipLib.cs . Closes KSP-CKAN#221. Closes KSP-CKAN/CKAN-meta#33 @malahx: I'll be releasing an updated CKAN client shortly with these fixes.
Uses the patch from icsharpcode/SharpZipLib#53 . Thank you, @Novn, for writing this. Uses the build fixes from https://github.com/Arakis/SharpZipLib for Mono. Thank you, @arakis, for providing these. The branch I built from is at https://github.com/pjf/SharpZipLib/tree/ckan_gh221 Attentioning @bastianeicher who is maintaining a totally awesome SharpZipLib patches branch. @Novn's patch above fixes the bug described at http://community.sharpdevelop.net/forums/t/21758.aspx . There's a test file at https://github.com/pjf/CKAN/blob/221_ziplib/t/data/gh221.zip which shows the presence of the bug when combined with the test at https://github.com/pjf/CKAN/blob/221_ziplib/CKAN/Tests/ZipLib.cs . Closes KSP-CKAN#221. Closes KSP-CKAN/CKAN-meta#33 @malahx: I'll be releasing an updated CKAN client shortly with these fixes.
We seem to have this bug which is different from this other bug which is already fixed in the SharpZipLib version we're using.
Reported by @malahx in KSP-CKAN/CKAN-Meta#33.
I don't suppose C# supports monkey-patching, does it? Because we could monkey-patch this away easily enough. :)
The text was updated successfully, but these errors were encountered: