NIFI-10852 Allow commons-compress to use large OS groupid values

This closes #6694

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Mark Bean 2022-11-21 18:22:14 +00:00 committed by exceptionfactory
parent d23e50168f
commit 66be1cf0b2
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ limitations under the License.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.21</version>
<version>1.22</version>
</dependency>
</dependencies>
</project>

View File

@ -178,6 +178,7 @@ public class TransferDebugOperationHandler implements C2OperationHandler {
try (GzipCompressorOutputStream gzipCompressorOutputStream = new GzipCompressorOutputStream(byteOutputStream);
TarArchiveOutputStream tarOutputStream = new TarArchiveOutputStream(gzipCompressorOutputStream)) {
for (Path filePath : filePaths) {
tarOutputStream.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
TarArchiveEntry tarArchiveEntry = new TarArchiveEntry(filePath.toFile(), filePath.getFileName().toString());
tarOutputStream.putArchiveEntry(tarArchiveEntry);
copy(filePath, tarOutputStream);