You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2022/11/21 20:05:52 UTC

[nifi] branch main updated: NIFI-10852 Allow commons-compress to use large OS groupid values

This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 66be1cf0b2 NIFI-10852 Allow commons-compress to use large OS groupid values
66be1cf0b2 is described below

commit 66be1cf0b285c094b77b3e17beeeabafc9ddfaa2
Author: Mark Bean <ma...@gmail.com>
AuthorDate: Mon Nov 21 18:22:14 2022 +0000

    NIFI-10852 Allow commons-compress to use large OS groupid values
    
    This closes #6694
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 c2/c2-client-bundle/c2-client-service/pom.xml                           | 2 +-
 .../nifi/c2/client/service/operation/TransferDebugOperationHandler.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/c2/c2-client-bundle/c2-client-service/pom.xml b/c2/c2-client-bundle/c2-client-service/pom.xml
index 10e4cd4c20..1e6dba0083 100644
--- a/c2/c2-client-bundle/c2-client-service/pom.xml
+++ b/c2/c2-client-bundle/c2-client-service/pom.xml
@@ -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>
\ No newline at end of file
diff --git a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java
index ef73bbc8d7..f9437b16e3 100644
--- a/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java
+++ b/c2/c2-client-bundle/c2-client-service/src/main/java/org/apache/nifi/c2/client/service/operation/TransferDebugOperationHandler.java
@@ -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);