-
Notifications
You must be signed in to change notification settings - Fork 313
zip without compression extracts to empty files #236
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
Comments
Need to look on zip file structure what this library making. |
I'm facing the same issue. Basically the problem is that in lib/zip/input_stream.rb:147
prints I'm using this zip to replicate it. The test case is:
Which of course fails. I've been trying to follow rubyzip's code in order to fix it, but this is my first time dealing with zip formats and the like. Any help is appreciated. |
Is there any updates or solutions? |
I'm having the same issue. Does anyone have a solution? Thanks |
Any update here ? I have zip files with NO_COMPRESSION and basically rubzip says there are no entries when uncompressing |
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Sam Coward <scoward@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
- Add "stack" to buildpack model - At migration time, buildpacks will be assigned default stack from stacks.yml file if its path is set in the STACKS_YML env var - hwc_buildpack is assigned the newer of windows2016,windows2012R2 stacks if present in stacks.yml - if STACKS_YML is not set, buildpacks' stacks will be set to nil - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io>
[#153256959] [#154527662] - Add "stack" to buildpack model, which will be nil by default - Buildpacks are now unique over name AND stack - Sets buildpack stack from manifest.yml in buildpack zip on creation - Validate buildpack model stack against stack in buildpack zip manifest.yml - Validate stack exists upon buildpack bits upload - Include stack name in serialized buildpack filename - Only provide buildpacks for the relevant stack (or those with a nil stack) to the staging container - Handle buildpack stacks appropriately in the buildpack installer - Use fork of rubyzip/rubyzip to work around rubyzip/rubyzip#236 NOTE: The API checkshum has changed due to adding stack as an input Signed-off-by: Dave Goddard <dave@goddard.id.au> Signed-off-by: Victoria Henry <vhenry@pivotal.io> Signed-off-by: Jackson Feeny <jacksonfeeny@gmail.com> Signed-off-by: Tyler Phelan <tphelan@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Leah Hanson <lhanson@pivotal.io> Signed-off-by: Eric Promislow <eric.promislow@suse.com> Signed-off-by: Lisa Cho <lcho@pivotal.io>
(I'm helping Alex with maintenance.) I see a 👍 and no further reports since #358 landed in 1.2.2, so I will close the ticket. Please comment if it is still a problem. Thanks for the fix @ameyer-pivotal and @idoru. |
i created a zip using https://github.com/pixelglow/zipzap with compress:NO on the entries and it unzips fine using the normal unzip command line utility (Info-ZIP) and Archive Utility on my os x laptop. however, when i try to extract it with rubyzip it creates zero-byte files for all the entries. here's what one of the entries and its input stream looks like. sysread on that stream always returns empty string.
The text was updated successfully, but these errors were encountered: