-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Setting nvdApiResultsPerPage to something other than 2000 results in downloading more than 100% #6866
Comments
Hey, I appreciate the quick reaction, one more thing, as far as I see this is just a visual bug (in the line being printed to the logs), the download has been stuck for a good few hours at 198% at this point, would you have an idea as to why? Here's some logs: |
Did it ever complete? |
Well it was running for 3-4 hours and I stopped it, I’ve started a new one today that also got stuck at 98-99%, I haven’t stopped it yet |
If it doesn't complete - can you make sure to run it with debug (I know |
The gist I’ve sent 20 hours ago is with -X |
Hey, I attached JMC to the stuck dependency-check process, here are the only 2 threads I could find that had calls to org.owasp.* or io.github.* in their call stack main: pool-4-thread-1: |
Also seems to ignore nvdMaxRetryCount, I tried setting it to 100 to see if maybe it would go through after many attempts, but after "DEBUG - Retrying request 8 time" nothing is ever printed to the log until shutdown. |
@deennyy I'm reopening this - even though this should really be a different issue at this point. I've add some additional debug logic here: jeremylong/open-vulnerability-cli#200 The only thing I can think of is that somehow a massive delay is either requested by the NVD or it is being incorrectly calculated. Is there any chance you increased the delay? |
Hi, yes I’ve tried to increase the delay to no avail, one thing I noticed - it always gets stuck when startIndex gets to 246000, and thats on every run. Maybe its an issue with NVD? |
I know myself - its likely a dumb mistake in my code ;) (I hope not... but I'm trying to reproduce this to validate) |
Are you using an API Key? I just retested, successfully, that the maven plugin worked with |
Yea, im using an api key, It might be some weird network issue honestly, im going to try on a different network later today and report results |
Hey, I just tried on another PC and network and everything worked fine, I guess it's some weird network issue. Closing. |
Describe the bug
Hello, when I set nvdApiResultsPerPage to something other than 2000, say 1000, I get messages reporting that I have downloaded more than 100%. I need to set it to ~1000, because when it's at the default 2000 my requests get a "connection reset" sometimes.
Version of dependency-check used
The problem occurs using version 10.0.3 of the maven plugin.
Log file
gist
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It would stop downloading at 100% and continue with the checking.
The text was updated successfully, but these errors were encountered: