Skip to content
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

Streamed archives do not work #191

Closed
tp971 opened this issue Mar 5, 2024 · 1 comment
Closed

Streamed archives do not work #191

tp971 opened this issue Mar 5, 2024 · 1 comment
Labels

Comments

@tp971
Copy link

tp971 commented Mar 5, 2024

I don't know the exact details on how the zip format works, but I have an application that uses the fact that files can be streamed into a zip archive without knowing the file size in advance. This can be simulated with the following command:

$ echo test | zip test.zip -

This creates a file test.zip containing a file -:

$ unzip -lv test.zip -
Archive:  test.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       5  Stored        5   0% 2024-03-05 01:01 3bb935c6  -
--------          -------  ---                            -------
       5                5   0%                            1 file

The archive can be extracted using unzip but not with xarchiver, i.e. it is stuck in "Opening archive, please wait..."

@ib ib added the bug label Mar 5, 2024
ib added a commit that referenced this issue Mar 5, 2024
This fixes github issue #191, reported by tp971.
@ib
Copy link
Owner

ib commented Mar 5, 2024

Fixed.

@ib ib closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants