Bug 1191598

Summary: list of errata returns wrong structure of data (date versus issue_date)
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 570   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 12:27:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1127217    

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.