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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 1af6afffa [COMPRESS-689] Unable to detect symlinks in ZIP
1af6afffa is described below

commit 1af6afffa185c4dbd4b2b5358242d78e66720e72
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Dec 7 17:38:40 2024 -0500

    [COMPRESS-689] Unable to detect symlinks in ZIP
    
    - Add a test and show how an alternate solution
    - See ZipArchiveInputStreamTest.testWriteZipWithLinks()
---
 .../commons/compress/archivers/zip/ZipArchiveInputStreamTest.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
index 5c734d1ed..dae5600bc 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
@@ -52,7 +52,6 @@ import 
org.apache.commons.compress.archivers.ArchiveStreamFactory;
 import org.apache.commons.compress.utils.ByteUtils;
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang3.ArrayFill;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
@@ -725,7 +724,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
             zipOutputStream.closeArchiveEntry();
         }
         // Reads the central directory
-        try (ZipFile zipFile = new 
ZipFile.Builder().setFile("target/zipWithLinks.zip").get()) {
+        try (ZipFile zipFile = 
ZipFile.builder().setFile("target/zipWithLinks.zip").get()) {
             assertTrue(zipFile.getEntry("link").isUnixSymlink(), "'link' 
detected but it's not sym link");
             assertFalse(zipFile.getEntry("original").isUnixSymlink(), "'link' 
detected but it's not sym link");
         }

Reply via email to