mirror of https://github.com/apache/nifi.git
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:
parent
d23e50168f
commit
66be1cf0b2
|
@ -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>
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue