log4j-finder icon indicating copy to clipboard operation
log4j-finder copied to clipboard

Error with a ZIP file

Open tacbuh opened this issue 3 years ago • 6 comments

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

tacbuh avatar Dec 27 '21 11:12 tacbuh

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.

yunzheng avatar Dec 28 '21 14:12 yunzheng

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

tacbuh avatar Dec 29 '21 10:12 tacbuh

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

yunzheng avatar Dec 29 '21 12:12 yunzheng

I tried both commands but still got the same error.

tacbuh avatar Dec 29 '21 16:12 tacbuh

@tacbuh you might have a corrupted zip?

joeschlimmer-ic avatar Jan 03 '22 14:01 joeschlimmer-ic

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

tacbuh avatar Jan 03 '22 16:01 tacbuh