Red Hat Bugzilla – Bug 1263758
Enable non-admin users to list icons over REST
Last modified: 2016-02-10 14:23:21 EST
Description of problem:
Enable non-admin users to call GET /api/icons
Steps to Reproduce:
1. Start engine with some non-admin user (aaa-jdbc can be the way)
2. Get list of icons over rest using non-admin user and header 'Filter: true' GET /api/icons
Request will fail because the underlying query in admin only (VdcQueryAuthType#Admin).
List of icons that are either predefined or associated with some entity the user has permissions to (vm or template).
$ curl -k -X GET -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: True" -v -u $USER $URL/icons/
<icon href="/ovirt-engine/api/icons/771965d4-eaa2-4063-9e5f-c43a1adc25cc" id="771965d4-eaa2-4063-9e5f-c43a1adc25cc">
Since oVirt 3.6.0 has been released, moving from verified to closed current release.