question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows release Zip archives contain duplicate files

See original GitHub issue

Hi there,

when evaluating CrateDB on Windows (see also [1]), we observed that the zip release archives apparently contain duplicate start script and configuration files. So, when inflating them, the unzip program will prompt the user multiple times.

wget https://cdn.crate.io/downloads/releases/cratedb/x64_windows/crate-4.4.2.zip
unzip crate-4.4.2.zip
replace crate-4.2.0-ee80a3c/bin/crate? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
replace crate-4.2.0-ee80a3c/bin/crate.bat? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
replace crate-4.2.0-ee80a3c/bin/crate.in.sh? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
replace crate-4.2.0-ee80a3c/config/crate.yml? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
replace crate-4.2.0-ee80a3c/config/log4j2.properties? [y]es, [n]o, [A]ll, [N]one, [r]ename: n

This issue might also block automated extraction processes when not being invoked with the -o overwrite files WITHOUT prompting option like unzip -o crate-4.4.2.zip.

With kind regards, Andreas.

[1] https://gist.github.com/amotl/69046c2c4a8e6744b1d6cde3f9523119


More details

$ unzip -l crate-4.2.0.zip | grep bin/crate
     6379  07-07-2020 14:24   crate-4.2.0-ee80a3c/bin/crate
     3323  07-07-2020 14:25   crate-4.2.0-ee80a3c/bin/crate.bat
     3158  07-07-2020 14:25   crate-4.2.0-ee80a3c/bin/crate.in.sh
     6379  07-07-2020 14:24   crate-4.2.0-ee80a3c/bin/crate
     3323  07-07-2020 14:25   crate-4.2.0-ee80a3c/bin/crate.bat
     3158  07-07-2020 14:25   crate-4.2.0-ee80a3c/bin/crate.in.sh
     9763  07-07-2020 14:26   crate-4.2.0-ee80a3c/bin/crate-node
     7167  07-07-2020 14:26   crate-4.2.0-ee80a3c/bin/crate-node.bat
$ unzip -l crate-4.2.0.zip | grep config
        0  07-07-2020 14:24   crate-4.2.0-ee80a3c/config/
    27327  07-07-2020 14:24   crate-4.2.0-ee80a3c/config/crate.yml
     2044  07-07-2020 14:24   crate-4.2.0-ee80a3c/config/log4j2.properties
    27327  07-07-2020 14:24   crate-4.2.0-ee80a3c/config/crate.yml
     2044  07-07-2020 14:24   crate-4.2.0-ee80a3c/config/log4j2.properties

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
BaurzhanSakharievcommented, Jul 13, 2021
1reaction
BaurzhanSakharievcommented, Jun 10, 2021

Couldn’t reproduce locally, was told that it might be one time issue with manual upload - waiting for the next release. If the issue stays after automatic upload will investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

For a Zip file, when the contents are extracted is it a duplicate ...
But just to be very clear: after you “unzip” the zip file - the individual files is not yet copied to the filesystem...
Read more >
Zip files contain "ghost" files for each folder - confusing
Method 1: I would suggest you to run the fix it tool and check. Diagnose and repair Windows File and Folder Problems automatically....
Read more >
some duplicate files in release file #145 - GitHub
After decompressing the zip file, I found that in OTF/ subfolder, there are some *.zip files, as well as their decompressed version: OTF...
Read more >
How can I extract every file in a zip archive that contains more ...
ZipInputStream class that steps through the file and extracts duplicate entries with new names. If you don't have the skill to do this ......
Read more >
zipping files with the same name in different folders using 7z ...
In my test, the resulting .7z archive has folders and sub-folders reflecting the ... I ran into the same error (Duplicate filename) while...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found