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 d0aec98f6 [COMPRESS-689] Unable to detect symlinks in ZIP
d0aec98f6 is described below

commit d0aec98f62d1870d22f869aeec5ac1ed9ea3126a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Dec 7 17:39:37 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       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 dae5600bc..0b7aed6c7 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
@@ -726,7 +726,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
         // Reads the central directory
         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");
+            assertFalse(zipFile.getEntry("original").isUnixSymlink(), 
"'original' detected but it's not sym link");
         }
         // Doesn't reads the central directory
         try (ZipArchiveInputStream zipInputStream = new 
ZipArchiveInputStream(new FileInputStream("target/zipWithLinks.zip"))) {

Reply via email to