Bug 1460953

Summary: GET request for user's permissions gives NPE
Product: [oVirt] ovirt-engine Reporter: Aleksei Slaikovskii <aslaikov>
Component: AAAAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Gonza <grafuls>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, mperina, stirabos
Target Milestone: ovirt-4.1.3Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.3.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 13:15:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log with NPE none

Description Aleksei Slaikovskii 2017-06-13 08:50:51 UTC
Created attachment 1287190 [details]
engine.log with NPE

Description of problem:
I have a user with system role UserVmManager. When I try to get all permissions of this user while logged in as this user I've got HTTP 500 and NPE.

$ curl -k -u user1@internal:123456 https://engine/ovirt-engine/api/users/123/permissions
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <detail></detail>
    <reason>Operation Failed</reason>
</fault>


Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170611165620.git3c74d3b.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create a user
2. Give this user system role of UserVmManager
3. Make GET request as in description

Actual results:
HTTP 500 and NPE

Expected results:
Response with user's permissions

Comment 1 Martin Perina 2017-06-14 13:19:11 UTC
Moving to 4.1.3 as it's part of ovirt-engine-4.1.3.3 build

Comment 2 Martin Perina 2017-06-16 17:04:01 UTC
Included in 4.1.3.4 tag, so moving to ON_QA

Comment 3 Gonza 2017-06-19 13:26:24 UTC
Verified with:
rhevm-4.1.3.4-0.1.el7.noarch

Still getting NPE when requesting permissions.

Comment 4 Red Hat Bugzilla Rules Engine 2017-06-19 13:26:28 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 5 Gonza 2017-06-20 14:35:33 UTC
Reverified as per rnori's instructions with:
rhevm-4.1.3.4-0.1.el7.noarch