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
commit 22109de2ad4516329ba7f7db10758157977646f7 Author: dan-s1 <dsti...@gmail.com> AuthorDate: Fri May 10 21:23:03 2024 +0000 NIFI-13216 Replaced deprecated GzipUtils methods - Replaced isCompressedFilename and getUncompressedFilename with the API suggested alternatives This closes #8816 Signed-off-by: David Handermann <exceptionfact...@apache.org> --- .../c2/client/service/operation/TransferDebugOperationHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 98e5703bd9..f44f39246e 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 @@ -167,8 +167,8 @@ public class TransferDebugOperationHandler implements C2OperationHandler { Path tempDirectory = createTempDirectory(operationId); String fileName = bundleFile.getFileName().toString(); - Path preparedFile = GzipUtils.isCompressedFilename(fileName) - ? handleGzipFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), GzipUtils.getUncompressedFilename(fileName))) + Path preparedFile = GzipUtils.isCompressedFileName(fileName) + ? handleGzipFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), GzipUtils.getUncompressedFileName(fileName))) : handleUncompressedFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), fileName)); preparedFiles.add(preparedFile); }