Bug 1191598 - list of errata returns wrong structure of data (date versus issue_date)
Summary: list of errata returns wrong structure of data (date versus issue_date)
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 570
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat570-triage
TreeView+ depends on / blocked
 
Reported: 2015-02-11 14:56 UTC by Pavel Studeník
Modified: 2018-04-09 12:27 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-09 12:27:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2015-02-11 14:56:04 UTC
Description of problem:
I call method channel.software.listErrata by API and I got other result than I suppose (documentation). But when I call method findByCve I got correct keys of data. 

>> client.errata.findByCve(key, "CVE-2008-3270")
[{'date': '8/14/08', 'advisory_name': 'RHSA-2008:0815', 'advisory_type': 'Security Advisory', 'id': 1962, 'advisory_synopsis': 'Moderate: yum-rhn-plugin security update'}]

>> client.channel.software.listErrata(key, "redhat-rhn-proxy-5.6-server-x86_64-6")
{'advisory_type': 'Bug Fix Advisory', 'issue_date': '2014-11-25 00:00:00', 'advisory': 'RHBA-2014:1902', 'last_modified_date': '2014-11-25 10:03:22', 'synopsis': 'Red Hat Network Proxy server spacewalk-proxy bug fix update', 'update_date': '2014-11-25 00:00:00'}

array:

    struct - errata
        int "id" - Errata ID.
        string "date" - Date erratum was created.
        string "update_date" - Date erratum was updated.
        string "advisory_synopsis" - Summary of the erratum.
        string "advisory_type" - Type label such as Security, Bug Fix
        string "advisory_name" - Name such as RHSA, etc


Version-Release number of selected component (if applicable):
spacewalk-java-2.3.8-96.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. go to /rhn/apidoc/handlers/ErrataHandler.jsp#findByCve  and /rhn/apidoc/handlers/ChannelSoftwareHandler.jsp#listErrata
2. client.errata.findByCve(key, "CVE-2008-3270")
3. client.channel.software.listErrata(key, "redhat-rhn-proxy-5.6-server-x86_64-6")
4. ['advisory_type', 'issue_date', 'advisory', 'last_modified_date', 'synopsis', 'update_date'] vs ['date', 'advisory_name', 'advisory_type', 'id', 'advisory_synopsis']

Actual results:
Mismatch between keys issue_date and date. 

Expected results:
Same key for methods and documentation.

Comment 1 Tomas Lestach 2018-04-09 12:27:34 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.


Note You need to log in before you can comment on or make changes to this bug.