Bug 1702676

Summary: API: GET call doesn't list some attributes
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: ReportingAssignee: Ondřej Pražák <oprazak>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: inecas, mhulan, oprazak, zhunting
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.22.0.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:49:11 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:

Description Lukáš Hellebrandt 2019-04-24 12:48:28 UTC
Description of problem:
"GET https://$(hostname)//api/report_templates" doesn't show all report template attributes, e.g. Snippet, Locked or Audit_comment. All of these are available through WebUI. 

Version-Release number of selected component (if applicable):
Reproduced with Sat 6.5 snap 25

How reproducible:
Deterministic

Steps to Reproduce:
1. Create a report template
2. GET report template through API:
# curl -u admin:<password> -H "Accept:  version=2, application/json" -H  "Content-Type: application/json" -k -X GET  https://$(hostname)/api/report_templates/<id>

Actual results:
Report template returned, but some attributes are missing

Expected results:
Report template returned with all attributes

Comment 3 Ondřej Pražák 2019-04-25 05:54:28 UTC
Created redmine issue http://projects.theforeman.org/issues/26679 from this bug

Comment 4 Bryan Kearney 2019-04-25 08:02:12 UTC
Upstream bug assigned to oprazak

Comment 5 Bryan Kearney 2019-04-25 08:02:14 UTC
Upstream bug assigned to oprazak

Comment 6 Bryan Kearney 2019-04-26 16:02:11 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26679 has been resolved.

Comment 8 Lukáš Hellebrandt 2019-06-21 09:13:29 UTC
Verified with Sat 6.6 snap 7.

"Snippet" and "locked" fields are now listed when using reproducer from OP. Audit and History is out of scope of this bugzilla.

Comment 9 Bryan Kearney 2019-10-22 19:49:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3172