Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file repl/xmlpubtk/loadqueue/LoadQueue.jar is corrupt #71

Open
frostmar opened this issue Aug 30, 2023 · 3 comments
Open

file repl/xmlpubtk/loadqueue/LoadQueue.jar is corrupt #71

frostmar opened this issue Aug 30, 2023 · 3 comments

Comments

@frostmar
Copy link
Member

File /repl/xmlpubtk/loadqueue/LoadQueue.jar seems to be corrupt or non-standard in some way

Evidence:
download https://github.com/IBM/db2-samples/blob/master/repl/xmlpubtk/loadqueue/LoadQueue.jar
inspect with -

# jar tf /tmp/LoadQueue.jar
java.util.zip.ZipException: invalid END header (bad central directory offset)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:247)
	at java.util.zip.ZipFile.<init>(ZipFile.java:172)
	at java.util.zip.ZipFile.<init>(ZipFile.java:143)
	at sun.tools.jar.Main.list(Main.java:1127)
	at sun.tools.jar.Main.run(Main.java:305)
	at sun.tools.jar.Main.main(Main.java:1300)

# file /tmp/LoadQueue.jar
/tmp/LoadQueue.jar: Java archive data (JAR)
@kdrodger
Copy link
Member

Just confirming that yes, I'm seeing the same behaviour. Will take a look to see what's gone wrong and hopefully it can be fixed relatively easily.

@kdrodger
Copy link
Member

kdrodger commented Sep 7, 2023

After digging back through the history this seems to have been the case for many, many years and releases, although I think I've found an old copy that suggests the intended contents were only the single .class file plus a simple manifest.

@hdonnay
Copy link

hdonnay commented Sep 7, 2023

I opened it up and figured out why the file is wrong, at least: quay/claircore#1049 (comment)

Obviously I have no clue how it ended up that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants