Bug 1702676 - API: GET call doesn't list some attributes
Summary: API: GET call doesn't list some attributes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Reporting
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.6.0
Assignee: Ondřej Pražák
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-24 12:48 UTC by Lukáš Hellebrandt
Modified: 2019-10-22 19:49 UTC (History)
4 users (show)

Fixed In Version: foreman-1.22.0.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:49:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 26679 0 Normal Closed Missing attributes for report templates in API output 2020-12-08 12:10:17 UTC

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


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