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

Fix shared docs zip upload to send multiple files at once #482

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

ldidry
Copy link
Contributor

@ldidry ldidry commented Nov 22, 2018

On Debian 9, with perl 5.24.1 and Archive::Zip 1.59 and 1.64, uploading
a zip file to let Sympa (6.2.34) unzip it and put its files into shared
docs fails.
The zip member is a CGI::File::Temp instance and can seek but fails to
be extracted ("Unable to extract member XXX of the zip file" in Sympa
logs).
Unconditionnally blessing the file handle to IO::File fixes the failure.

On Debian 9, with perl 5.24.1 and Archive::Zip 1.59 and 1.64, uploading
a zip file to let Sympa (6.2.34) unzip it and put its files into shared
docs fails.
The zip member is a CGI::File::Temp instance and can seek but fails to
be extracted ("Unable to extract member XXX of the zip file" in Sympa
logs).
Unconditionnally blessing the file handle to IO::File fixes the failure.
@ikedas
Copy link
Member

ikedas commented Nov 25, 2018

@ldidry, for my interest, what is the version of CGI module?

@ldidry
Copy link
Contributor Author

ldidry commented Nov 25, 2018

It's Debian's one:

ii  libcgi-pm-perl                   4.35-1                         all          module for Common Gateway Interface applications

@ikedas ikedas merged commit 3f8d7fe into sympa-community:sympa-6.2 Nov 28, 2018
@ikedas
Copy link
Member

ikedas commented Nov 28, 2018

I merged your commit with my commit to note unusual bless.

@ikedas ikedas added the bug label Nov 28, 2018
@ikedas ikedas added this to the 6.2.38 milestone Nov 28, 2018
@ldidry ldidry deleted the fix-zip-upload branch November 30, 2018 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants