Bug 868304 - UserVmManager of a VM is not able to see its permissions in REST API
Summary: UserVmManager of a VM is not able to see its permissions in REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Oved Ourfali
QA Contact: Ondra Machacek
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-19 12:57 UTC by David Jaša
Modified: 2016-02-10 19:05 UTC (History)
8 users (show)

Fixed In Version: si22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:59:34 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Jaša 2012-10-19 12:57:28 UTC
Description of problem:
UserVmManager of a VM is not able to see its permissions in REST API. She is able to see permissions in User Portal just fine

Version-Release number of selected component (if applicable):
3.1.0-18 / si19.1

How reproducible:


Steps to Reproduce:
1. issue a filtered GET query on VM permissions:
curl ...  -H "filter: true" -X GET https://rhevm31.example.com/api/vms/ad5f7497-120d-40da-9093-c9c4b8919e50/permissions
  
Actual results:
HTTP/1.1 400 Bad Request
Date: Fri, 19 Oct 2012 12:52:58 GMT
Content-Type: application/xml
Content-Length: 188
Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <reason>Operation Failed</reason>
    <detail>query execution failed due to insufficient permissions.</detail>
</fault>

Expected results:
user is able to to see the permissions the same way as in the User Portal

Additional info:
other VM subcollections are visible just fine (apart from tags that are admin-only anyway)

Comment 1 Oved Ourfali 2012-10-22 11:58:54 UTC
Gerrit patch: 
http://gerrit.ovirt.org/#/c/8720/

Comment 2 Oved Ourfali 2012-10-22 12:30:15 UTC
Commit: 9254ec57d533a0694e7ef8817b95e44782c4e349

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=9254ec57d533a0694e7ef8817b95e44782c4e349


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