Closed
Description
What did you do? (required. The issue will be closed when not provided.)
There is a difference in the output of GetByPackName and GetByCveID in RDB and Redis.
What did you expect to happen?
In RDB and Redis, this is equivalent to the output of GetByPackName, GetByCveID.
What happened instead?
sqlite3_ruby-libs.json.txt
sqlite3_CVE-2019-2683.json.txt
redis_ruby-libs.json.txt
redis_CVE-2019-2683.json.txt
Steps to reproduce the behaviour
packs/redhat/8/ruby-libs
cves/redhat/8/CVE-2019-2683
$ goval-dictionary fetch-redhat 8
$ goval-dictionary fetch-redhat --dbtype redis --dbpath "redis://127.0.0.1:6379/0" 8
$ goval-dictionary server --port 1322 --dbpath (pwd)/oval.sqlite3
$ goval-dictionary server --port 1323 --dbtype redis --dbpath "redis://127.0.0.1:6379/0"
$ curl http://127.0.0.1:1322/packs/redhat/8/ruby-libs | jq . > sqlite3.json
$ curl http://127.0.0.1:1323/packs/redhat/8/ruby-libs | jq . > redis.json
$ grep "DefinitionID" sqlite3.json
$ grep "DefinitionID" redis.json
Configuration (MUST fill this out):
-
Go version (
go version
):
1.16.2 -
Go environment (
go env
): -
goval-dictionary environment:
Hash : ____
To check the commit hash of HEAD
$ goval-dictionary -v
goval-dictionary v0.3.5 0a1e75f