Bug 1460953 - GET request for user's permissions gives NPE
Summary: GET request for user's permissions gives NPE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: AAA
Version: 4.2.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.1.3
: 4.1.3.4
Assignee: Ravi Nori
QA Contact: Gonza
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-13 08:50 UTC by Aleksei Slaikovskii
Modified: 2017-07-06 13:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-06 13:15:51 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
engine.log with NPE (34.62 KB, text/plain)
2017-06-13 08:50 UTC, Aleksei Slaikovskii
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 78144 0 master MERGED aaa: GET request for user's permissions gives NPE 2017-06-13 15:13:43 UTC
oVirt gerrit 78156 0 ovirt-engine-4.1 MERGED aaa: GET request for user's permissions gives NPE 2017-06-14 07:09:53 UTC

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


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