-
-
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
"NoDataException: No documents exist" when local database does not exist yet #7227
Comments
@aikebah @jeremylong I'd be happy to help with debugging but at this point I wouldn't know where to start. |
@marcelstoer git feel: cveb.in is not using the correct file format (old style NVD datafeed JSON, where ODC requires a per-year file with API v2 json formatting (e.g from the vulnz-cli mirroring as documented on the ODC documentation)) |
Oh...oh.... I went back and checked https://jeremylong.github.io/DependencyCheck/dependency-check-maven/configuration.html ->
So, the files on that mirror are "per year" but the "1.1" in Wild idea: since the NVD API is still unavailable, could I translate the mirror feed files to the new format? I'm still a bit confused, sorry. (How) is this related to #7211 (comment)? It says
Doesn't that indicate that using cveb.in is expected to work? |
My mistake - from earlier posts it seemed like the cveb.in worked. Apparently it does not. There is a cache located at https://dependency-check.github.io/DependencyCheck_Builder/nvd_cache/ This is updated nightly and is in the format required by ODC. |
I still don't fully understand what's going on with the different feed files but I now switched caches as an interim fix. Thanks! |
Describe the bug
If you don't have an existing data directory (e.g.
~/.m2/repository/org/owasp/dependency-check-data/11.0
), the Maven plugin will fail to properly initialize a new database. It succeeds creating it but then fails the scan withodc.mv.db
will be around 300KB when instead it should be around 180MB.However, if I already haven an older database in the
11.0
data dir, the plugin properly updates it.Version of dependency-check used
The problem occurs using version 11.1.1 of the Maven plugin.
Log file
Excerpt of the Maven console output below. What I think we are seeing is that creating the local database completes successfully. No indication of a malfunction anywhere.
To Reproduce
~/.m2/repository/org/owasp/dependency-check-data/11.0
mvn -e org.owasp:dependency-check-maven:11.1.1:aggregate -DnvdDatafeedUrl="https://mirror.cveb.in/nvd/json/cve/1.1/nvdcve-1.1-{0}.json.gz"
Expected behavior
The plugin should initialize a new database in the
11.0
directory. It should contain all CVEs pulled in from the data feed JSON files.Additional context
11.0
directory including the more or less empty database.The text was updated successfully, but these errors were encountered: