Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1333112 - API does not return Fact values with Viewer role
API does not return Fact values with Viewer role
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
6.1.2
Unspecified Unspecified
high Severity high (vote)
: 6.1.9
: Unused
Assigned To: Daniel Lobato Garcia
Sanket Jagtap
http://projects.theforeman.org/issues...
: Triaged
Depends On: 1268829
Blocks: 1122832
  Show dependency treegraph
 
Reported: 2016-05-04 12:37 EDT by Mike McCune
Modified: 2017-02-23 14:18 EST (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1268829
Environment:
Last Closed: 2016-05-17 01:33:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2328291 None None None 2016-05-18 08:52 EDT
Foreman Issue Tracker 9793 None None None 2016-05-04 13:04 EDT
Red Hat Product Errata RHBA-2016:1084 normal SHIPPED_LIVE Satellite 6.1.9 bug fix update 2016-05-17 05:32:24 EDT

  None (edit)
Comment 1 Bryan Kearney 2016-05-04 14:19:06 EDT
Upstream bug assigned to dlobatog@redhat.com
Comment 2 Bryan Kearney 2016-05-04 14:19:10 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/9793 has been closed
Comment 7 Sanket Jagtap 2016-05-16 06:24:34 EDT
 curl -ksH "Content-Type:application/json" -H "Accept:application/json" -H "Accept:version=2" -u admin1:aa https://xyz.redhat.com/api/hosts/4/facts | json_reformat
{
    "total": 0,
    "subtotal": 1,
    "page": 1,
    "per_page": 20,
    "search": " host = 4",
    "sort": {
        "by": null,
        "order": null
    },
    "results": {
        "xyz.redhat.com": {
            "uptime_hours": "0",
            "uptime_days": "0",
            "uptime": "0:00 hours",
            "macaddress": "00:12:4a:4e:a6:21",
            "macaddress_eth0": "00:1a:4a:3e:a6:21",
            "bios_release_date": "01/01/2007",
            "bios_version": "0.5.1",
            "uniqueid": "09775",
            "blockdevice_vda_vendor": "0x1af4",
            "physicalprocessorcount": "1",
            "processorcount": "1",
            "blockdevice_sr0_size": "1073741312",
            "network_eth0": "x.x.112.0",
            "ipaddress": "x.x.112.24",
            "ipaddress_eth0": "x.x.112.24",
            "network_lo": "127.0.0.0",
            "ipaddress_lo": "127.0.0.1",
            "augeasversion": "1.4.0",
            "facterversion": "1.7.6",
            "rubyversion": "2.0.0"
        }
    }
}
Comment 8 Sanket Jagtap 2016-05-16 08:41:13 EDT
hammer -u admin -p changeme user info --id 4
Id:                   4
Login:                admin1
Name:                 admin1 admin1
Email:                admin1@sa.com
Admin:                no
Authorized by:        Internal
Last login:           2016/05/16 10:24:05
Default organization: 
Default location:     
Roles:                
    Anonymous
    Viewer
User groups:          

Locations:            
    Default Location
Organizations:        
    Default Organization
Created at:           2016/05/16 10:01:23
Updated at:           2016/05/16 10:24:05


Also works for manager role.
Comment 10 errata-xmlrpc 2016-05-17 01:33:28 EDT
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/RHBA-2016:1084

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