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

enhance rhsecapi cmdline arg parsing of CVEs by running list through rhsda.extract_cves_from_input() #46

Closed
ryran opened this Issue Nov 21, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@ryran
Owner

ryran commented Nov 21, 2016

Currently:

$ rhsecapi -f bugzilla cve-2999-bad cve-2016-9401,CVE-2016-9374.json /CVE-2016-9074,CVE-2016-9064
[NOTICE ] rhsda: Valid Red Hat CVE results retrieved: 0 of 3
[NOTICE ] rhsda: Invalid CVE queries: 3 of 3

CVE-2999-BAD
  Not present in Red Hat CVE database
  Try https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2999-BAD

CVE-2016-9401,CVE-2016-9374.JSON
  Not present in Red Hat CVE database
  Try https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9401,CVE-2016-9374.JSON

/CVE-2016-9074,CVE-2016-9064
  Not present in Red Hat CVE database

After the change:

$ rhsecapi -f bugzilla cve-2999-bad cve-2016-9401,CVE-2016-9374.json /CVE-2016-9074,CVE-2016-9064
[NOTICE ] rhsda: Found 4 CVEs on cmdline
[NOTICE ] rhsda: Valid Red Hat CVE results retrieved: 4 of 4

CVE-2016-9401
  BUGZILLA: 1396383

CVE-2016-9374
  BUGZILLA: 1396410

CVE-2016-9074
  BUGZILLA: 1396548

CVE-2016-9064
  BUGZILLA: 1395060

@ryran ryran added the enhancement label Nov 21, 2016

@ryran ryran self-assigned this Nov 21, 2016

ryran added a commit that referenced this issue Nov 21, 2016

@ryran ryran closed this Nov 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment