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

Error with a ZIP file #78

Open
tacbuh opened this issue Dec 27, 2021 · 6 comments
Open

Error with a ZIP file #78

tacbuh opened this issue Dec 27, 2021 · 6 comments

Comments

@tacbuh
Copy link

tacbuh commented Dec 27, 2021

Hello,
I have this message :

DEBUG Got <ZipInfo filename='js-sources/tinymce_3.5.9.zip' compress_type=deflate filemode='-rw-rw-r--' file_size=1449915 compress_size=646119>: Bad magic number for central directory, falling back to BytesIO
Traceback (most recent call last):
File "log4j-finder.py", line 371, in <module>
File "log4j-finder.py", line 345, in main
File "log4j-finder.py", line 173, in iter_jarfile
File "log4j-finder.py", line 173, in iter_jarfile
File "log4j-finder.py", line 158, in iter_jarfile
File "zipfile.py", line 1225, in __init__
File "zipfile.py", line 1310, in _RealGetContents
ValueError: negative seek value -27762772
[9308] Failed to execute script log4j-finder

I tried to exclude the directory or file but nothing works.

tinymce_3.5.9.zip

@yunzheng
Copy link
Member

yunzheng commented Dec 28, 2021

Excluding with --exclude "*/tinymce_3.5.9.zip" should work. I didn't have any issue with the tinymce_3.5.9.zip file btw. Could be related to the Python version.

@tacbuh
Copy link
Author

tacbuh commented Dec 29, 2021

I tried log4j-finder-signed.exe --exclude "*/tinymce_3.5.9.zip" -vv and got the same error

@yunzheng
Copy link
Member

Could be because windows use backslash as path separator. Try —exclude “*\tinymce_3.5.9.zip” or —exclude “*tinymce_3.5.9.zip”

@tacbuh
Copy link
Author

tacbuh commented Dec 29, 2021

I tried both commands but still got the same error.

@joeschlimmer-ic
Copy link

@tacbuh you might have a corrupted zip?

@tacbuh
Copy link
Author

tacbuh commented Jan 3, 2022

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 828806 bytes (810 KiB)

Testing archive: c:\Users\test\Downloads\tinymce_3.5.9.zip

Path = c:\Users\test\Downloads\tinymce_3.5.9.zip
Type = zip
Physical Size = 828806

Everything is Ok

Folders: 114
Files: 282
Size: 2292647
Compressed: 828806

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