Bug 1333112 - API does not return Fact values with Viewer role
Summary: API does not return Fact values with Viewer role
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Daniel Lobato Garcia
QA Contact: Sanket Jagtap
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On: 1268829
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2016-05-04 16:37 UTC by Mike McCune
Modified: 2019-11-14 07:56 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1268829
Environment:
Last Closed: 2016-05-17 05:33:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9793 0 Normal Closed querying /api/v2/fact_values with a user with view rights doesn't work 2021-02-02 17:14:06 UTC
Red Hat Knowledge Base (Solution) 2328291 0 None None None 2016-05-18 12:52:39 UTC
Red Hat Product Errata RHBA-2016:1084 0 normal SHIPPED_LIVE Satellite 6.1.9 bug fix update 2016-05-17 09:32:24 UTC

Comment 1 Bryan Kearney 2016-05-04 18:19:06 UTC
Upstream bug assigned to dlobatog

Comment 2 Bryan Kearney 2016-05-04 18:19:10 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9793 has been closed

Comment 7 Sanket Jagtap 2016-05-16 10:24:34 UTC
 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 12:41:13 UTC
hammer -u admin -p changeme user info --id 4
Id:                   4
Login:                admin1
Name:                 admin1 admin1
Email:                admin1
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 05:33:28 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/RHBA-2016:1084


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