Bug 848767 - User login filter problem - REST API
Summary: User login filter problem - 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: Michael Pasternak
QA Contact: Ondra Machacek
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-16 11:30 UTC by Ondra Machacek
Modified: 2016-02-10 19:26 UTC (History)
8 users (show)

Fixed In Version: si16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:00:37 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ondra Machacek 2012-08-16 11:30:28 UTC
Description of problem:

Can't login as a user via REST API.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Create a user and assgin it a role which is not SuperUser.
2. Try to connect via REST API with this user.
  
Actual results:
<fault>
    <reason>Operation Failed</reason>
    <detail>query execution failed due to insufficient permissions.</detail>
</fault>

Expected results:
User should connect.

Additional info:
Problem is only with url OVIRTENGINE:PORT/api
For example if I try connect with user who has UserVmManager role and try to
connect with curl:

#$ curl -X GET -u user@domain:pass http://url/api/vms

I get list of vms. So the problems seems to be only with /api

Because if I try to do this command:

#$ curl -X GET -H "Filter: true" -u user@domain:pass http://url/api

I get this error:
<fault>
    <reason>Operation Failed</reason>
    <detail>Entity not found: VdcVersion</detail>
</fault>

Comment 1 Michael Pasternak 2012-08-22 16:20:20 UTC
https://gerrit.eng.lab.tlv.redhat.com/#/c/1453/


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