Page MenuHomePhabricator

Track POCO issue #2849144
Closed, ResolvedPublic

Description

I tried to use Poco::Zip::Decompress::decompressAllFiles() to unzip a zip archive. Although the archive was correctly unzipped (verified by diff), the EError notification was triggered for each unzipped file.

The messages where "Failed to create output stream " + filename

I had a look at the code where the error notifications come from and think that line 139 contains a typo. The variable aFile is initialized to "file", which is only the filename part without the parent directory. This makes the following test for ".exists()" fail. When I change the initialization of aFile to

Poco::File aFile(dest.toString());

the method works as expected and does not trigger error messages any more.

Poco::Zip::Decompress::decompressAllFiles() is used in mitk/Modules/SceneSerialization/mitkSceneIO.cpp in method mitk::SceneIO::LoadScene().

This issue was submitted to the POCO bug tracker as issue #2849144 at

https://sourceforge.net/tracker/?func=detail&aid=2849144&group_id=132964&atid=725711

Related Objects

StatusAssignedTask
Wontfixkislinsk
InvalidNone
ResolvedNone

Event Timeline

The proposed patch is already applied to MITK's Poco copy in revision 18777.

From Poco's bugtracker:

Comment By: Guenter Obiltschnig (obiltschnig)

Date: 2009-10-26 20:37

Message:
fixed in 1.3.6

Seems to be fixed in the next Poco release.

Merging "Utilities" component into "Other"