core icon indicating copy to clipboard operation
core copied to clipboard

gzip decompess fails on some archives

Open requist opened this issue 12 years ago • 6 comments

Because the short header listing (readHeader) in 3rdparty/Archive/Tar.php is not trimming the filenames it fails on some archives. These "broken" archives pass gzip integrity tests and can be handled without problems by other decompression tools.

The solution is quite simple, just trim the filename after reading the header like it already is done in readLongHeader for many years. Shall I make a PR, include the latest version which is needed for PHP5.5 support and then file a bug report to the maintainers, or shall I just report this issue with the maintainers and we wait?

requist avatar Aug 04 '14 13:08 requist

A PR would be great! Thanks

karlitschek avatar Aug 04 '14 13:08 karlitschek

Here is it: https://github.com/owncloud/3rdparty/pull/108

The maintainer Michiel Rook must have been reading along, he released today (just after I checked for updates) a new version with our previously added changes and fixing this bug. :8ball:

requist avatar Aug 04 '14 16:08 requist

@karlitschek this is related to https://github.com/owncloud/core/issues/9283 as well - are you okay with backporting that 3rdparty change to stable7?

DeepDiver1975 avatar Sep 23 '14 14:09 DeepDiver1975

yes. please backport

karlitschek avatar Sep 24 '14 12:09 karlitschek

on it ...

DeepDiver1975 avatar Sep 24 '14 12:09 DeepDiver1975

stable7: c31990e9362389d87f4f7a2fb8e1e42a13d7f5aa

DeepDiver1975 avatar Sep 24 '14 12:09 DeepDiver1975