-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
java.util.zip.ZipException: Not in GZIP format when using a ndv datafeed mirror created with vulnz #7475
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
Comments
@JoKoT3 Do you have .gz files stored in your bitbucket, or did you decompress them and stored them as json files? |
@aikebah the thought behind my PR is that something was going on header wise that was making the client decompress the GZ file... |
Since it's bugging me, triple checked locally the repo content : joko@GIMLI:/mnt/c/Users/John/Code/nvd-mirror/content$ file nvdcve-2002.json.gz |
Any chance you could grab the response headers and post them here? |
Another thing that you could do that would be helpful - build the |
Precondition
Describe the bug
Downloading nvd datafeed from a mirror created with vulnz fail with the following error :
java.util.zip.ZipException: Not in GZIP format
In detail :
I created a bitbucket page that mirror the nvd feed. The mirror is created with the vulnz docker image (steps: create cache with vulnz, git commit and push content, mirror is served by bitbucket page).
I then added nvdDataFeedUrl in the another project pom.xml pointing to the page.
I am able to check the urls are indeed correct, as I can download the json.gz with my browser.
dependency-check-maven (and I suppose others too) fail with the error above
if I check the http header I get from the server when I used my browser, I can see that
content-encoding is gzip
content-type is application/json
My best guess is that both client and server agree on handling gzip and the client ends up with an uncompressed json and then try to uncompress it again
Version of dependency-check used
The problem occurs using version 12.1.0 of the maven plugin (docker: maven:3.9.6-eclipse-temurin-17-alpine)
Log file
https://gist.github.com/JoKoT3/5a077a3a5d2d50c3abc17eb04c96f35d
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Fix may be to implement a catch on the java.util.zip.ZipException and try to load it as an uncompressed json
Additional context
I can provide my personnal mirror URL in private for testing purposes
The text was updated successfully, but these errors were encountered: