Skip to content

display errata release_date field #52

@ryran

Description

@ryran

So for example, this CVE has some JBCS errata:

$ rhsecapi -f releases -p core CVE-2016-5387
[NOTICE ] rhsda: Found 1 CVEs on cmdline
[NOTICE ] rhsda: Valid Red Hat CVE results retrieved: 1 of 1
[NOTICE ] rhsda: Results matching spotlight-product option: 1 of 1

CVE-2016-5387
  FIXED_RELEASES matching 'core':
   Red Hat JBoss Core Services 1: RHSA-2016:1625
   Red Hat JBoss Core Services on RHEL 6 Server [jbcs-httpd24-httpd-2.4.6-77.SP1.jbcs.el6]: RHSA-2016:1851
   Red Hat JBoss Core Services on RHEL 7 Server [jbcs-httpd24-httpd-2.4.6-77.SP1.jbcs.el7]: RHSA-2016:1851

That info was gleaned from the following json:

{
  "advisory": "RHSA-2016:1625", 
  "cpe": "cpe:/a:redhat:jboss_core_services:1", 
  "product_name": "Red Hat JBoss Core Services 1", 
  "release_date": "2016-08-17T00:00:00"
}, 
{
  "advisory": "RHSA-2016:1851", 
  "cpe": "cpe:/a:redhat:jboss_core_services:1::el6", 
  "package": "jbcs-httpd24-httpd-2.4.6-77.SP1.jbcs.el6", 
  "product_name": "Red Hat JBoss Core Services on RHEL 6 Server", 
  "release_date": "2016-09-12T00:00:00"
}, 
{
  "advisory": "RHSA-2016:1851", 
  "cpe": "cpe:/a:redhat:jboss_core_services:1::el7", 
  "package": "jbcs-httpd24-httpd-2.4.6-77.SP1.jbcs.el7", 
  "product_name": "Red Hat JBoss Core Services on RHEL 7 Server", 
  "release_date": "2016-09-12T00:00:00"
}, 

There have been a couple times where I've wished I could quickly see what the release date was for a particular errata. It would be nice to use that field ... however, it will make those long lines even longer ... could make it optional with an option but need to balance that with making things even more complicated. Sigh. I want to add it. Just not sure how.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions