Stefan Bodewig | bdd4bd6 | 2015-01-30 08:14:03 +0000 | [diff] [blame] | 1 | Apache Commons Compress RELEASE NOTES |
Sebastian Bazley | 48882f1 | 2010-04-13 21:02:37 +0000 | [diff] [blame] | 2 | |
Stefan Bodewig | 4a15417 | 2013-10-13 04:06:16 +0000 | [diff] [blame] | 3 | Apache Commons Compress software defines an API for working with |
| 4 | compression and archive formats. These include: bzip2, gzip, pack200, |
Stefan Bodewig | de63306 | 2014-10-09 12:00:48 +0000 | [diff] [blame] | 5 | lzma, xz, Snappy, traditional Unix Compress, DEFLATE and ar, cpio, |
| 6 | jar, tar, zip, dump, 7z, arj. |
| 7 | |
Torsten Curdt | 68db5fa | 2016-01-15 15:35:17 +0100 | [diff] [blame^] | 8 | Release 1.11 (not yet released) |
| 9 | ------------ |
| 10 | |
| 11 | Changes |
| 12 | o TarArchiveEntry's preserveLeadingSlashes is now a property and used |
| 13 | on later calls to setName, too. |
| 14 | This behavior is a breaking change. |
| 15 | Issue: COMPRESS-328 |
| 16 | |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 17 | Release 1.10 |
| 18 | ------------ |
| 19 | |
| 20 | Release 1.10 moves the former |
| 21 | org.apache.commons.compress.compressors.z._internal_ package which |
| 22 | breaks backwards compatibility for code which used the old package. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 23 | |
| 24 | This also changes the superclass of ZCompressorInputStream which makes |
| 25 | this class binary incompatible with the one of Compress 1.9. Code |
| 26 | that extends ZCompressorInputStream will need to be recompiled in |
| 27 | order to work with Compress 1.10. |
Stefan Bodewig | c100d2e | 2015-01-30 08:24:54 +0000 | [diff] [blame] | 28 | |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 29 | New features: |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 30 | o CompressorStreamFactory can now auto-detect DEFLATE streams |
| 31 | with ZLIB header. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 32 | Issue: COMPRESS-316. Thanks to Nick Burch. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 33 | o CompressorStreamFactory can now auto-detect LZMA streams. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 34 | Issue: COMPRESS-313. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 35 | o Added support for parallel compression. This low-level API allows |
| 36 | a client to build a zip/jar file by using the class |
| 37 | org.apache.commons.compress.archivers.zip.ParallelScatterZipCreator. |
| 38 | |
| 39 | Zip documentation updated with further notes about parallel features. |
| 40 | |
| 41 | Please note that some aspects of jar creation need to be |
| 42 | handled by client code and is not part of commons-compress for this |
| 43 | release. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 44 | Issue: COMPRESS-296. Thanks to Kristian Rosenvold. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 45 | o Cut overall object instantiation in half by changing file |
| 46 | header generation algorithm, for a 10-15 percent performance |
| 47 | improvement. |
| 48 | |
| 49 | Also extracted two private methods createLocalFileHeader |
| 50 | and createCentralFileHeader in ZipArchiveOutputStream. |
| 51 | These may have some interesting additional usages in the |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 52 | near future. Thanks to Kristian Rosenvold. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 53 | o New methods in ZipArchiveOutputStream and ZipFile allows |
| 54 | entries to be copied from one archive to another without |
| 55 | having to re-compress them. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 56 | Issue: COMPRESS-295. Thanks to Kristian Rosenvold. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 57 | |
| 58 | Fixed Bugs: |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 59 | o TarArchiveInputStream can now read entries with group or |
| 60 | user ids > 0x80000000. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 61 | Issue: COMPRESS-314. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 62 | o TarArchiveOutputStream can now write entries with group or |
| 63 | user ids > 0x80000000. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 64 | Issue: COMPRESS-315. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 65 | o TarArchiveEntry's constructor with a File and a String arg |
| 66 | didn't normalize the name. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 67 | Issue: COMPRESS-312. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 68 | o ZipEncodingHelper no longer reads system properties directly |
| 69 | to determine the default charset. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 70 | Issue: COMPRESS-308. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 71 | o BZip2CompressorInputStream#read would return -1 when asked to |
| 72 | read 0 bytes. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 73 | Issue: COMPRESS-309. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 74 | o ArchiveStreamFactory fails to pass on the encoding when creating |
| 75 | some streams. |
| 76 | * ArjArchiveInputStream |
| 77 | * CpioArchiveInputStream |
| 78 | * DumpArchiveInputStream |
| 79 | * JarArchiveInputStream |
| 80 | * TarArchiveInputStream |
| 81 | * JarArchiveOutputStream |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 82 | Issue: COMPRESS-306. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 83 | o Restore immutability/thread-safety to ArchiveStreamFactory. |
| 84 | The class is now immutable provided that the method setEntryEncoding |
| 85 | is not used. The class is thread-safe. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 86 | Issue: COMPRESS-302. |
Stefan Bodewig | b1e2a02 | 2015-08-18 17:49:15 +0000 | [diff] [blame] | 87 | o Restore immutability/thread-safety to CompressorStreamFactory. |
| 88 | The class is now immutable provided that the method |
| 89 | setDecompressConcatenated is not used. The class is thread-safe. |
| 90 | Issue: COMPRESS-303. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 91 | o ZipFile logs a warning in its finalizer when its constructor |
| 92 | has thrown an exception reading the file - for example if the |
| 93 | file doesn't exist. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 94 | Issue: COMPRESS-297. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 95 | o Improved error message when tar encounters a groupId that is |
| 96 | too big to write without using the STAR or POSIX format. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 97 | Issue: COMPRESS-290. Thanks to Kristian Rosenvold. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 98 | o SevenZFile now throws the specific PasswordRequiredException |
| 99 | when it encounters an encrypted stream but no password has |
| 100 | been specified. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 101 | Issue: COMPRESS-298. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 102 | |
| 103 | Changes: |
| 104 | o Moved the package |
| 105 | org.apache.commons.compress.compressors.z._internal_ to |
| 106 | org.apache.commons.compress.compressors.lzw and made it part |
| 107 | of the API that is officially supported. This will break |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 108 | existing code that uses the old package. Thanks to Damjan Jovanovic. |
Stefan Bodewig | ec07514 | 2015-01-26 05:12:09 +0000 | [diff] [blame] | 109 | |
| 110 | For complete information on Apache Commons Compress, including instructions |
| 111 | on how to submit bug reports, patches, or suggestions for improvement, |
| 112 | see the Apache Commons Compress website: |
| 113 | |
| 114 | http://commons.apache.org/compress/ |
| 115 | |
| 116 | Old Release Notes |
| 117 | ================= |
| 118 | |
Stefan Bodewig | de63306 | 2014-10-09 12:00:48 +0000 | [diff] [blame] | 119 | Release 1.9 |
| 120 | ----------- |
| 121 | |
| 122 | New features: |
| 123 | o Added support for DEFLATE streams without any gzip framing. |
| 124 | Issue: COMPRESS-263. |
| 125 | Thanks to Matthias Stevens. |
| 126 | |
| 127 | Fixed Bugs: |
| 128 | o When reading 7z files unknown file properties and properties of type |
| 129 | kDummy are now ignored. |
| 130 | Issue: COMPRESS-287. |
| 131 | o Expanding 7z archives using LZMA compression could cause an |
| 132 | EOFException. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 133 | Issue: COMPRESS-286. |
Stefan Bodewig | de63306 | 2014-10-09 12:00:48 +0000 | [diff] [blame] | 134 | o Long-Name and -link or PAX-header entries in TAR archives always had |
| 135 | the current time as last modfication time, creating archives that |
| 136 | are different at the byte level each time an archive was built. |
| 137 | Issue: COMPRESS-289. |
| 138 | Thanks to Bob Robertson. |
| 139 | |
| 140 | Changes: |
| 141 | o Checking for XZ for Java may be expensive. The result will now be |
| 142 | cached outside of an OSGi environment. You can use the new |
| 143 | XZUtils#setCacheXZAvailability to overrride this default behavior. |
| 144 | Issue: COMPRESS-285. |
| 145 | |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 146 | Release 1.8.1 |
Stefan Bodewig | de63306 | 2014-10-09 12:00:48 +0000 | [diff] [blame] | 147 | ------------- |
Sebastian Bazley | 48882f1 | 2010-04-13 21:02:37 +0000 | [diff] [blame] | 148 | |
Stefan Bodewig | 48d7470 | 2013-03-10 17:10:57 +0000 | [diff] [blame] | 149 | New features: |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 150 | o COMPRESS-272: CompressorStreamFactory can now auto-detect Unix compress |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 151 | (".Z") streams. |
Stefan Bodewig | 48d7470 | 2013-03-10 17:10:57 +0000 | [diff] [blame] | 152 | |
Sebastian Bazley | 48882f1 | 2010-04-13 21:02:37 +0000 | [diff] [blame] | 153 | Fixed Bugs: |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 154 | o COMPRESS-270: The snappy, ar and tar inputstreams might fail to read from a |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 155 | non-buffered stream in certain cases. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 156 | o COMPRESS-277: IOUtils#skip might skip fewer bytes than requested even though |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 157 | more could be read from the stream. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 158 | o COMPRESS-276: ArchiveStreams now validate there is a current entry before |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 159 | reading or writing entry data. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 160 | o ArjArchiveInputStream#canReadEntryData tested the current |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 161 | entry of the stream rather than its argument. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 162 | o COMPRESS-274: ChangeSet#delete and deleteDir now properly deal with unnamed |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 163 | entries. |
| 164 | o COMPRESS-273: Added a few null checks to improve robustness. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 165 | o COMPRESS-278: TarArchiveInputStream failed to read archives with empty |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 166 | gid/uid fields. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 167 | o COMPRESS-279: TarArchiveInputStream now again throws an exception when it |
| 168 | encounters a truncated archive while reading from the last |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 169 | entry. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 170 | o COMPRESS-280: Adapted TarArchiveInputStream#skip to the modified |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 171 | IOUtils#skip method. Thanks to BELUGA BEHR. |
Stefan Bodewig | 48d7470 | 2013-03-10 17:10:57 +0000 | [diff] [blame] | 172 | |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 173 | Changes: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 174 | o The dependency on org.tukaani:xz is now marked as optional. |
Stefan Bodewig | ec5eebf | 2014-05-09 18:28:42 +0000 | [diff] [blame] | 175 | |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 176 | Release 1.8 |
| 177 | ----------- |
| 178 | |
| 179 | New features: |
| 180 | o GzipCompressorInputStream now provides access to the same |
| 181 | metadata that can be provided via GzipParameters when writing |
| 182 | a gzip stream. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 183 | Issue: COMPRESS-260. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 184 | o SevenZOutputFile now supports chaining multiple |
| 185 | compression/encryption/filter methods and passing options to |
| 186 | the methods. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 187 | Issue: COMPRESS-266. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 188 | o The (compression) method(s) can now be specified per entry in |
| 189 | SevenZOutputFile. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 190 | Issue: COMPRESS-261. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 191 | o SevenZArchiveEntry "knows" which method(s) have been used to |
| 192 | write it to the archive. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 193 | Issue: COMPRESS-258. |
| 194 | o The 7z package now supports the delta filter as method. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 195 | o The 7z package now supports BCJ filters for several platforms. |
| 196 | You will need a version >= 1.5 of XZ for Java to read archives |
| 197 | using BCJ, though. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 198 | Issue: COMPRESS-257. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 199 | |
| 200 | Fixed Bugs: |
| 201 | o BZip2CompressorInputStream read fewer bytes than possible from |
| 202 | a truncated stream. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 203 | Issue: COMPRESS-253. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 204 | o SevenZFile failed claiming the dictionary was too large when |
| 205 | archives used LZMA compression for headers and content and |
| 206 | certain non-default dictionary sizes. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 207 | Issue: COMPRESS-253. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 208 | o CompressorStreamFactory.createCompressorInputStream with |
| 209 | explicit compression did not honor decompressConcatenated |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 210 | Issue: COMPRESS-259. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 211 | o TarArchiveInputStream will now read archives created by tar |
| 212 | implementations that encode big numbers by not adding a |
| 213 | trailing NUL. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 214 | Issue: COMPRESS-262. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 215 | o ZipArchiveInputStream would return NUL bytes for the first 512 |
| 216 | bytes of a STORED entry if it was the very first entry of the |
| 217 | archive. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 218 | Issue: COMPRESS-264. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 219 | o When writing PAX/POSIX headers for TAR entries with |
| 220 | backslashes or certain non-ASCII characters in their name |
| 221 | TarArchiveOutputStream could fail. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 222 | Issue: COMPRESS-265. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 223 | o ArchiveStreamFactory now throws a StreamingNotSupported - a |
| 224 | new subclass of ArchiveException - if it is asked to read from |
| 225 | or write to a stream and Commons Compress doesn't support |
| 226 | streaming for the format. This currently only applies to the |
| 227 | 7z format. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 228 | Issue: COMPRESS-267. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 229 | |
| 230 | Release 1.7 |
| 231 | ----------- |
| 232 | |
| 233 | New features: |
| 234 | o Read-Only support for Snappy compression. |
| 235 | Issue: COMPRESS-147. Thanks to BELUGA BEHR. |
| 236 | o Read-Only support for .Z compressed files. |
| 237 | Issue: COMPRESS-243. Thanks to Damjan Jovanovic. |
| 238 | o ZipFile and ZipArchiveInputStream now support reading entries |
| 239 | compressed using the SHRINKING method. Thanks to Damjan Jovanovic. |
| 240 | o GzipCompressorOutputStream now supports setting the compression |
| 241 | level and the header metadata (filename, comment, modification time, |
| 242 | operating system and extra flags) |
| 243 | Issue: COMPRESS-250. Thanks to Emmanuel Bourg. |
| 244 | o ZipFile and ZipArchiveInputStream now support reading entries |
| 245 | compressed using the IMPLODE method. |
| 246 | Issue: COMPRESS-115. Thanks to Emmanuel Bourg. |
| 247 | o ZipFile and the 7z file classes now implement Closeable and can be |
| 248 | used in try-with-resources constructs. |
| 249 | |
| 250 | Fixed Bugs: |
| 251 | o SevenZOutputFile#closeArchiveEntry throws an exception when using |
| 252 | LZMA2 compression on Java8. Issue: COMPRESS-241. |
| 253 | o 7z reading of big 64bit values could be wrong. |
| 254 | Issue: COMPRESS-244. Thanks to Nico Kruber. |
| 255 | o TarArchiveInputStream could fail to read an archive completely. |
| 256 | Issue: COMPRESS-245. |
| 257 | o The time-setters in X5455_ExtendedTimestamp now set the |
| 258 | corresponding flags explicitly - i.e. they set the bit if the valus |
| 259 | is not-null and reset it otherwise. This may cause |
| 260 | incompatibilities if you use setFlags to unset a bit and later set |
| 261 | the time to a non-null value - the flag will now be set. |
| 262 | Issue: COMPRESS-242. |
| 263 | o SevenZOutputFile would create invalid archives if more than six |
| 264 | empty files or directories were included. Issue: COMPRESS-252. |
| 265 | |
| 266 | Release 1.6 |
| 267 | ----------- |
| 268 | |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 269 | Version 1.6 introduces changes to the internal API of the tar package that |
| 270 | break backwards compatibility in the following rare cases. This version |
| 271 | removes the package private TarBuffer class along with the protected "buffer" |
| 272 | members in TarArchiveInputStream and TarArchiveOutputStream. This change will |
| 273 | only affect you if you have created a subclass of one of the stream classes |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 274 | and accessed the buffer member or directly used the TarBuffer class. |
| 275 | |
| 276 | Changes in this version include: |
| 277 | |
| 278 | New features: |
| 279 | o Added support for 7z archives. Most compression algorithms |
| 280 | can be read and written, LZMA and encryption are only |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 281 | supported when reading. Issue: COMPRESS-54. Thanks to Damjan Jovanovic. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 282 | o Added read-only support for ARJ archives that don't use |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 283 | compression. Issue: COMPRESS-226. Thanks to Damjan Jovanovic. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 284 | o DumpArchiveInputStream now supports an encoding parameter that |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 285 | can be used to specify the encoding of file names. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 286 | o The CPIO streams now support an encoding parameter that can be |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 287 | used to specify the encoding of file names. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 288 | o Read-only support for LZMA standalone compression has been added. |
| 289 | Issue: COMPRESS-111. |
| 290 | |
| 291 | Fixed Bugs: |
| 292 | o TarBuffer.tryToConsumeSecondEOFRecord could throw a |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 293 | NullPointerException Issue: COMPRESS-223. Thanks to Jeremy Gustie. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 294 | o Parsing of zip64 extra fields has become more lenient in order |
| 295 | to be able to read archives created by DotNetZip and maybe |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 296 | other archivers as well. Issue: COMPRESS-228. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 297 | o TAR will now properly read the names of symbolic links with |
| 298 | long names that use the GNU variant to specify the long file |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 299 | name. Issue: COMPRESS-229. Thanks to Christoph Gysin. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 300 | o ZipFile#getInputStream could return null if the archive |
| 301 | contained duplicate entries. |
| 302 | The class now also provides two new methods to obtain all |
| 303 | entries of a given name rather than just the first one. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 304 | Issue: COMPRESS-227. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 305 | o CpioArchiveInputStream failed to read archives created by |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 306 | Redline RPM. Issue: COMPRESS-236. Thanks to Andrew Duffy. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 307 | o TarArchiveOutputStream now properly handles link names that |
| 308 | are too long to fit into a traditional TAR header. Issue: |
| 309 | COMPRESS-237. Thanks to Emmanuel Bourg. |
| 310 | o The auto-detecting create*InputStream methods of Archive and |
| 311 | CompressorStreamFactory could fail to detect the format of |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 312 | blocking input streams. Issue: COMPRESS-239. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 313 | |
| 314 | Changes: |
| 315 | o Readabilty patch to TarArchiveInputStream. Issue: |
| 316 | COMPRESS-232. Thanks to BELUGA BEHR. |
| 317 | o Performance improvements to TarArchiveInputStream, in |
| 318 | particular to the skip method. Issue: COMPRESS-234. Thanks to |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 319 | BELUGA BEHR. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 320 | |
| 321 | Release 1.5 |
| 322 | ----------- |
| 323 | |
| 324 | New features: |
| 325 | |
| 326 | o CompressorStreamFactory has an option to create decompressing |
| 327 | streams that decompress the full input for formats that support |
| 328 | multiple concatenated streams. |
| 329 | Issue: COMPRESS-220. |
| 330 | |
| 331 | Fixed Bugs: |
| 332 | |
| 333 | o Typo in CompressorStreamFactory Javadoc |
| 334 | Issue: COMPRESS-218. |
| 335 | Thanks to Gili. |
| 336 | o ArchiveStreamFactory's tar stream detection created false positives |
| 337 | for AIFF files. |
| 338 | Issue: COMPRESS-191. |
| 339 | Thanks to Jukka Zitting. |
| 340 | o XZ for Java didn't provide an OSGi bundle. Compress' dependency on |
| 341 | it has now been marked optional so Compress itself can still be used |
| 342 | in an OSGi context. |
| 343 | Issue: COMPRESS-199. |
| 344 | Thanks to Jukka Zitting. |
| 345 | o When specifying the encoding explicitly TarArchiveOutputStream would |
| 346 | write unreadable names in GNU mode or even cause errors in POSIX |
| 347 | mode for file names longer than 66 characters. |
| 348 | Issue: COMPRESS-200. |
| 349 | Thanks to Christian Schlichtherle. |
| 350 | o Writing TAR PAX headers failed if the generated entry name ended |
| 351 | with a "/". |
| 352 | Issue: COMPRESS-203. |
| 353 | o ZipArchiveInputStream sometimes failed to provide input to the |
| 354 | Inflater when it needed it, leading to reads returning 0. |
| 355 | Issue: COMPRESS-189. |
| 356 | Thanks to Daniel Lowe. |
| 357 | o TarArchiveInputStream ignored the encoding for GNU long name |
| 358 | entries. |
| 359 | Issue: COMPRESS-212. |
| 360 | o TarArchiveInputStream could leave the second EOF record inside the |
| 361 | stream it had just finished reading. |
| 362 | Issue: COMPRESS-206. |
| 363 | Thanks to Peter De Maeyer. |
| 364 | o DumpArchiveInputStream no longer implicitly closes the original |
| 365 | input stream when it reaches the end of the archive. |
| 366 | o ZipArchiveInputStream now consumes the remainder of the archive when |
| 367 | getNextZipEntry returns null. |
| 368 | o Unit tests could fail if the source tree was checked out to a |
| 369 | directory tree containign spaces. |
| 370 | Issue: COMPRESS-205. |
| 371 | Thanks to Daniel Lowe. |
| 372 | o Fixed a potential ArrayIndexOutOfBoundsException when reading STORED |
| 373 | entries from ZipArchiveInputStream. |
| 374 | Issue: COMPRESS-219. |
| 375 | o CompressorStreamFactory can now be used without XZ for Java being |
| 376 | available. |
| 377 | Issue: COMPRESS-221. |
| 378 | |
| 379 | Changes: |
| 380 | |
| 381 | o Improved exception message if a zip archive cannot be read because |
| 382 | of an unsupported compression method. |
| 383 | Issue: COMPRESS-188. |
| 384 | Thanks to Harald Kuhn. |
| 385 | o ArchiveStreamFactory has a setting for file name encoding that sets |
| 386 | up encoding for ZIP and TAR streams. |
| 387 | Issue: COMPRESS-192. |
| 388 | Thanks to Jukka Zitting. |
| 389 | o TarArchiveEntry now has a method to verify its checksum. |
| 390 | Issue: COMPRESS-191. |
| 391 | Thanks to Jukka Zitting. |
| 392 | o Split/spanned ZIP archives are now properly detected by |
| 393 | ArchiveStreamFactory but will cause an |
| 394 | UnsupportedZipFeatureException when read. |
| 395 | o ZipArchiveInputStream now reads archives that start with a "PK00" |
| 396 | signature. Archives with this signatures are created when the |
| 397 | archiver was willing to split the archive but in the end only needed |
| 398 | a single segment - so didn't split anything. |
| 399 | Issue: COMPRESS-208. |
| 400 | o TarArchiveEntry has a new constructor that allows setting linkFlag |
| 401 | and preserveLeadingSlashes at the same time. |
| 402 | Issue: COMPRESS-201. |
| 403 | o ChangeSetPerformer has a new perform overload that uses a ZipFile |
| 404 | instance as input. |
| 405 | Issue: COMPRESS-159. |
| 406 | o Garbage collection pressure has been reduced by reusing temporary |
| 407 | byte arrays in classes. |
| 408 | Issue: COMPRESS-172. |
| 409 | Thanks to Thomas Mair. |
| 410 | o Can now handle zip extra field 0x5455 - Extended Timestamp. |
| 411 | Issue: COMPRESS-210. |
| 412 | Thanks to Julius Davies. |
| 413 | o handle zip extra field 0x7875 - Info Zip New Unix Extra Field. |
| 414 | Issue: COMPRESS-211. |
| 415 | Thanks to Julius Davies. |
| 416 | o ZipShort, ZipLong, ZipEightByteInteger should implement Serializable |
| 417 | Issue: COMPRESS-213. |
| 418 | Thanks to Julius Davies. |
| 419 | o better support for unix symlinks in ZipFile entries. |
| 420 | Issue: COMPRESS-214. |
| 421 | Thanks to Julius Davies. |
| 422 | o ZipFile's initialization has been improved for non-Zip64 archives. |
| 423 | Issue: COMPRESS-215. |
| 424 | Thanks to Robin Power. |
| 425 | o Updated XZ for Java dependency to 1.2 as this version provides |
| 426 | proper OSGi manifest attributes. |
| 427 | |
| 428 | Release 1.4.1 |
| 429 | ------------- |
| 430 | |
| 431 | This is a security bugfix release, see |
| 432 | http://commons.apache.org/proper/commons-compress/security.html#Fixed_in_Apache_Commons_Compress_1.4.1 |
| 433 | |
| 434 | Fixed Bugs: |
| 435 | |
| 436 | o Ported libbzip2's fallback sort algorithm to |
| 437 | BZip2CompressorOutputStream to speed up compression in certain |
| 438 | edge cases. |
| 439 | |
| 440 | Release 1.4 |
| 441 | ----------- |
| 442 | |
| 443 | New features: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 444 | o COMPRESS-156: Support for the XZ format has been added. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 445 | |
| 446 | Fixed Bugs: |
| 447 | o COMPRESS-183: The tar package now allows the encoding of file names to be |
| 448 | specified and can optionally use PAX extension headers to |
| 449 | write non-ASCII file names. |
| 450 | The stream classes now write (or expect to read) archives that |
| 451 | use the platform's native encoding for file names. Apache |
| 452 | Commons Compress 1.3 used to strip everything but the lower |
| 453 | eight bits of each character which effectively only worked for |
| 454 | ASCII and ISO-8859-1 file names. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 455 | This new default behavior is a breaking change. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 456 | o COMPRESS-184: TarArchiveInputStream failed to parse PAX headers that |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 457 | contained non-ASCII characters. |
| 458 | o COMPRESS-178: TarArchiveInputStream throws IllegalArgumentException instead of IOException |
| 459 | o COMPRESS-179: TarUtils.formatLongOctalOrBinaryBytes() assumes the field will be 12 bytes long |
| 460 | o COMPRESS-175: GNU Tar sometimes uses binary encoding for UID and GID |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 461 | o COMPRESS-171: ArchiveStreamFactory.createArchiveInputStream would claim |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 462 | short text files were TAR archives. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 463 | o COMPRESS-164: ZipFile didn't work properly for archives using unicode extra |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 464 | fields rather than UTF-8 filenames and the EFS-Flag. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 465 | o COMPRESS-169: For corrupt archives ZipFile would throw a RuntimeException in |
| 466 | some cases and an IOException in others. It will now |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 467 | consistently throw an IOException. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 468 | |
| 469 | Changes: |
| 470 | o COMPRESS-182: The tar package can now write archives that use star/GNU/BSD |
| 471 | extensions or use the POSIX/PAX variant to store numeric |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 472 | values that don't fit into the traditional header fields. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 473 | o COMPRESS-181: Added a workaround for a Bug some tar implementations that add |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 474 | a NUL byte as first byte in numeric header fields. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 475 | o COMPRESS-176: Added a workaround for a Bug in WinZIP which uses backslashes |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 476 | as path separators in Unicode Extra Fields. |
| 477 | o COMPRESS-131: ArrayOutOfBounds while decompressing bz2. Added test case - code already seems to have been fixed. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 478 | o COMPRESS-146: BZip2CompressorInputStream now optionally supports reading of |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 479 | concatenated .bz2 files. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 480 | o COMPRESS-154: GZipCompressorInputStream now optionally supports reading of |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 481 | concatenated .gz files. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 482 | o COMPRESS-16: The tar package can now read archives that use star/GNU/BSD |
| 483 | extensions for files that are longer than 8 GByte as well as |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 484 | archives that use the POSIX/PAX variant. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 485 | o COMPRESS-165: The tar package can now write archives that use star/GNU/BSD |
| 486 | extensions for files that are longer than 8 GByte as well as |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 487 | archives that use the POSIX/PAX variant. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 488 | o COMPRESS-166: The tar package can now use the POSIX/PAX variant for writing |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 489 | entries with names longer than 100 characters. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 490 | |
| 491 | Release 1.3 |
| 492 | ----------- |
| 493 | |
| 494 | Commons Compress 1.3 is the first version to require Java5 at runtime. |
| 495 | |
| 496 | Changes in this version include: |
| 497 | |
| 498 | New features: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 499 | o Support for the Pack200 format has been added. Issue: COMPRESS-142. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 500 | o Read-only support for the format used by the Unix dump(8) tool |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 501 | has been added. Issue: COMPRESS-132. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 502 | |
| 503 | Fixed Bugs: |
| 504 | o BZip2CompressorInputStream's getBytesRead method always |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 505 | returned 0. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 506 | o ZipArchiveInputStream and ZipArchiveOutputStream could leak |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 507 | resources on some JDKs. Issue: COMPRESS-152. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 508 | o TarArchiveOutputStream's getBytesWritten method didn't count |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 509 | correctly. Issue: COMPRESS-160. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 510 | |
| 511 | Changes: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 512 | o The ZIP package now supports Zip64 extensions. Issue: COMPRESS-36. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 513 | o The AR package now supports the BSD dialect of storing file |
| 514 | names longer than 16 chars (both reading and writing). |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 515 | Issue: COMPRESS-144. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 516 | |
| 517 | Release 1.2 |
| 518 | ----------- |
| 519 | |
| 520 | New features: |
| 521 | o COMPRESS-123: ZipArchiveEntry has a new method getRawName that provides the |
| 522 | original bytes that made up the name. This may allow user |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 523 | code to detect the encoding. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 524 | o COMPRESS-122: TarArchiveEntry provides access to the flags that determine |
| 525 | whether it is an archived symbolic link, pipe or other |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 526 | "uncommon" file system object. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 527 | |
| 528 | Fixed Bugs: |
| 529 | o COMPRESS-129: ZipArchiveInputStream could fail with a "Truncated ZIP" error |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 530 | message for entries between 2 GByte and 4 GByte in size. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 531 | o COMPRESS-145: TarArchiveInputStream now detects sparse entries using the |
| 532 | oldgnu format and properly reports it cannot extract their |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 533 | contents. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 534 | o COMPRESS-130: The Javadoc for ZipArchiveInputStream#skip now matches the |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 535 | implementation, the code has been made more defensive. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 536 | o COMPRESS-140: ArArchiveInputStream fails if entries contain only blanks for |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 537 | userId or groupId. Thanks to Trejkaz. |
| 538 | o COMPRESS-139: ZipFile may leak resources on some JDKs. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 539 | o COMPRESS-125: BZip2CompressorInputStream throws IOException if |
| 540 | underlying stream returns available() == 0. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 541 | Removed the check. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 542 | o COMPRESS-127: Calling close() on inputStream returned by |
| 543 | CompressorStreamFactory.createCompressorInputStream() |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 544 | does not close the underlying input stream. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 545 | o COMPRESS-119: TarArchiveOutputStream#finish now writes all buffered |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 546 | data to the stream |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 547 | |
| 548 | Changes: |
| 549 | o ZipFile now implements finalize which closes the underlying |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 550 | file. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 551 | o COMPRESS-117: Certain tar files not recognised by |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 552 | ArchiveStreamFactory. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 553 | |
| 554 | Release 1.1 |
| 555 | ----------- |
| 556 | |
| 557 | New features: |
| 558 | o COMPRESS-108: Command-line interface to list archive contents. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 559 | Usage: java -jar commons-compress-n.m.jar archive-name [zip|tar|etc] |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 560 | o COMPRESS-109: Tar implementation does not support Pax headers |
| 561 | Added support for reading pax headers. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 562 | Note: does not support global pax headers |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 563 | o COMPRESS-103: ZipArchiveInputStream can optionally extract data that used |
| 564 | the STORED compression method and a data descriptor. |
| 565 | Doing so in a stream is not safe in general, so you have to |
| 566 | explicitly enable the feature. By default the stream will |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 567 | throw an exception if it encounters such an entry. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 568 | o COMPRESS-98: The ZIP classes will throw specialized exceptions if any |
| 569 | attempt is made to read or write data that uses zip features |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 570 | not supported (yet). |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 571 | o COMPRESS-99: ZipFile#getEntries returns entries in a predictable order - |
| 572 | the order they appear inside the central directory. |
| 573 | A new method getEntriesInPhysicalOrder returns entries in |
| 574 | order of the entry data, i.e. the order ZipArchiveInputStream |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 575 | would see. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 576 | o The Archive*Stream and ZipFile classes now have |
| 577 | can(Read|Write)EntryData methods that can be used to check |
| 578 | whether a given entry's data can be read/written. |
| 579 | The method currently returns false for ZIP archives if an |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 580 | entry uses an unsupported compression method or encryption. |
| 581 | o COMPRESS-89: The ZIP classes now detect encrypted entries. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 582 | o COMPRESS-97: Added autodetection of compression format to |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 583 | CompressorStreamFactory. |
| 584 | o COMPRESS-95: Improve ExceptionMessages in ArchiveStreamFactory Thanks to Joerg Bellmann. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 585 | o A new constructor of TarArchiveEntry can create entries with |
| 586 | names that start with slashes - the default is to strip |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 587 | leading slashes in order to create relative path names. |
| 588 | o ArchiveEntry now has a getLastModifiedDate method. |
| 589 | o COMPRESS-78: Add a BZip2Utils class modelled after GZipUtils Thanks to Jukka Zitting. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 590 | |
| 591 | Fixed Bugs: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 592 | o COMPRESS-72: Move acknowledgements from NOTICE to README |
| 593 | o COMPRESS-113: TarArchiveEntry.parseTarHeader() includes the trailing space/NUL when parsing the octal size |
| 594 | o COMPRESS-118: TarUtils.parseName does not properly handle characters outside the range 0-127 |
| 595 | o COMPRESS-107: ArchiveStreamFactory does not recognise tar files created by Ant |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 596 | o COMPRESS-110: Support "ustar" prefix field, which is used when file paths are longer |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 597 | than 100 characters. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 598 | o COMPRESS-100: ZipArchiveInputStream will throw an exception if it detects an |
| 599 | entry that uses a data descriptor for a STORED entry since it |
| 600 | cannot reliably find the end of data for this "compression" |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 601 | method. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 602 | o COMPRESS-101: ZipArchiveInputStream should now properly read archives that |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 603 | use data descriptors but without the "unofficial" signature. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 604 | o COMPRESS-74: ZipArchiveInputStream failed to update the number of bytes |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 605 | read properly. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 606 | o ArchiveInputStream has a new method getBytesRead that should |
| 607 | be preferred over getCount since the later may truncate the |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 608 | number of bytes read for big archives. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 609 | o COMPRESS-85: The cpio archives created by CpioArchiveOutputStream couldn't |
| 610 | be read by many existing native implementations because the |
| 611 | archives contained multiple entries with the same inode/device |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 612 | combinations and weren't padded to a blocksize of 512 bytes. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 613 | o COMPRESS-73: ZipArchiveEntry, ZipFile and ZipArchiveInputStream are now |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 614 | more lenient when parsing extra fields. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 615 | o COMPRESS-82: cpio is terribly slow. |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 616 | Documented that buffered streams are needed for performance |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 617 | o Improved exception message if the extra field data in ZIP |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 618 | archives cannot be parsed. |
| 619 | o COMPRESS-17: Tar format unspecified - current support documented. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 620 | o COMPRESS-94: ZipArchiveEntry's equals method was broken for entries created |
| 621 | with the String-arg constructor. This lead to broken ZIP |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 622 | archives if two different entries had the same hash code. Thanks to Anon Devs. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 623 | o COMPRESS-87: ZipArchiveInputStream could repeatedly return 0 on read() when |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 624 | the archive was truncated. Thanks to Antoni Mylka. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 625 | o COMPRESS-86: Tar archive entries holding the file name for names longer |
| 626 | than 100 characters in GNU longfile mode didn't properly |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 627 | specify they'd be using the "oldgnu" extension. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 628 | o COMPRESS-83: Delegate all read and write methods in GZip stream in order to |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 629 | speed up operations. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 630 | o The ar and cpio streams now properly read and write last |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 631 | modified times. |
| 632 | o COMPRESS-81: TarOutputStream can leave garbage at the end of the archive |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 633 | |
| 634 | Changes: |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 635 | o COMPRESS-112: ArArchiveInputStream does not handle GNU extended filename records (//) |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 636 | o COMPRESS-105: Document that the name of an ZipArchiveEntry determines whether |
| 637 | an entry is considered a directory or not. |
| 638 | If you don't use the constructor with the File argument the entry's |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 639 | name must end in a "/" in order for the entry to be known as a directory. |
| 640 | o COMPRESS-79: Move DOS/Java time conversions into Zip utility class. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 641 | o COMPRESS-75: ZipArchiveInputStream does not show location in file |
Torsten Curdt | ce9e0ce | 2016-01-15 15:31:59 +0100 | [diff] [blame] | 642 | where a problem occurred. |
Stefan Bodewig | 0b71b47 | 2014-10-05 13:36:58 +0000 | [diff] [blame] | 643 | |