-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Poco::Zip::ZipArchive cannot load new tomcat.zip file #2661
Comments
I loaded the file from https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.17/bin/apache-tomcat-9.0.17-windows-x64.zip and tried it with the unzip example:
POCO version Compiler and version Operating system and version |
I may already have a fix for that sent by a customer. |
It still not working. I have tried 1.9.1 and 1.9.2. and same error. |
Looks like same bug, but in another file. |
Expected behavior
Poco::Zip::ZipArchive load zip archive
Actual behavior
throws an exception Assertion violation
Steps to reproduce the problem
download tomcat version 9.0.17
http://tux.rainside.sk/apache/tomcat/tomcat-9/v9.0.17/bin/apache-tomcat-9.0.17-windows-x64.zip
try to unzip by Poco::Zip::ZipArchive
POCO version
poco-1.9.0-all
Compiler and version
visual studio 2017
Operating system and version
windows 10 x64
Other relevant information
tomcat 9.0.16 and higher
#include "pch.h"
#include
#include
#include "d:\Poco_test\poco-1.9.0-all\Zip\include\Poco\Zip\ZipArchive.h"
int main()
{
std::string folderName = "d:\Downloads\apache-tomcat-9.0.17-windows-x64.zip";
std::ifstream inp(folderName, std::ios::binary);
poco_assert(inp);
try
{
Poco::Zip::ZipArchive arch(inp);
}
catch (std::exception& e)
{
std::cout << e.what();
}
}
The text was updated successfully, but these errors were encountered: