Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.6.3 Release
-
Rank:0|100nls:
Description
Lines 529-537 of CatalogUtils looks like this:
ZipI zipper;
|
if (compression_method.equalsIgnoreCase(".tar")) {
|
zipper = new TarUtils();
|
} else if (compression_method.equalsIgnoreCase(".gz")) {
|
zipper = new TarUtils();
|
zipper.setCompressionMethod(ZipOutputStream.DEFLATED);
|
} else {
|
zipper = new ZipUtils();
|
}
|
That second case will match both tar.gz and gz, but the TarUtils fails on plain gz compression. There needs to be an explicit check for .tar.gz and .tgz and let gz fall through to the last else.
Attachments
Issue Links
- relates to
-
XNAT-1928 All files with gz extension are treated as tar.gzs, tgz extension is NOT supported
-
- Closed
-