Skip to content

Error: java.util.zip.ZipException: invalid entry CRC #6

@rockstorm101

Description

@rockstorm101

Hi, I manually installed the filters as per [1] in an empty git repository. Then I created a simple .odt file with just a single line. git commit the file, added a simple mod and tried to see the diff. Here is the error I got:

$ git diff warning: CRLF will be replaced by LF in hello.odt. The file will have its original line endings in your working directory Exception in thread "main" java.util.zip.ZipException: invalid entry CRC (expected 0xecf40a9d but got 0x716ecc7d) at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:224) at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107) at io.github.hoijui.rezipdoc.Utils.transferTo(Utils.java:348) at io.github.hoijui.rezipdoc.ReZip.reZip(ReZip.java:248) at io.github.hoijui.rezipdoc.ReZip.reZip(ReZip.java:229) at io.github.hoijui.rezipdoc.ReZip.reZip(ReZip.java:201) at io.github.hoijui.rezipdoc.ReZip.main(ReZip.java:188) error: external filter 'java -cp .git/rezipdoc-*.jar io.github.hoijui.rezipdoc.ReZip --compressed' failed 1 error: external filter 'java -cp .git/rezipdoc-*.jar io.github.hoijui.rezipdoc.ReZip --compressed' failed Exception in thread "main" java.util.zip.ZipException: invalid entry CRC (expected 0xecf40a9d but got 0x716ecc7d) at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:224) at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107) at io.github.hoijui.rezipdoc.Utils.transferTo(Utils.java:348) at io.github.hoijui.rezipdoc.ZipDoc.transform(ZipDoc.java:153) at io.github.hoijui.rezipdoc.ZipDoc.transform(ZipDoc.java:125) at io.github.hoijui.rezipdoc.ZipDoc.main(ZipDoc.java:112) fatal: unable to read files to diff

Java version info:

$ java --version openjdk 11.0.11 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-post-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.11+9-post-Debian-1, mixed mode, sharing)

System info:

$ uname -a Linux [...] 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux $ lsb_release -a Distributor ID:	Debian Description:	Debian GNU/Linux 11 (bullseye) Release:	11 Codename:	bullseye 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions