[
https://issues.apache.org/jira/browse/NIFI-13157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845471#comment-17845471
]
Joe Witt commented on NIFI-13157:
---------------------------------
thanks Dan - also confirmed in Javadocs this was the preferred method. The
desc for the old method was more confidence inducing as it described it would
fully read the message in cases whereas this one has a generic desc but this
one matches all API usage of getNextEntry so we're good.
> Replace use of
> org.apache.commons.compress.archivers.tar.TarArchiveInputStream and
> org.apache.commons.compress.archivers.zip.ZipArchiveInputStream deprecated
> getNextTarEntry() and getNextZipEntry() with getNextEntry()
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-13157
> URL: https://issues.apache.org/jira/browse/NIFI-13157
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Fix For: 2.0.0-M3
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The getNextTarEntry() of
> org.apache.commons.compress.archivers.tar.TarArchiveInputStream and
> getNextZipEntry() of
> org.apache.commons.compress.archivers.zip.ZipArchiveInputStream have been
> deprecated and the suggested replacement is to use method getNextEntry().
> This should be replaced in the following places
> #
> nifi-commons/nifi-flowfile-packager/src/main/java/org/apache/nifi/util/FlowFileUnpackagerV1
> #
> c2/c2-client-bundle/c2-client-service/src/test/java/org/apache/nifi/c2/client/service/operation
> /TransferDebugOperationHandlerTest
> #
> nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/pr
> ocessors/hadoop/TarUnpackerSequenceFileWriter
> #
> nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent
--
This message was sent by Atlassian Jira
(v8.20.10#820010)