Bug 1284652 - Insufficient permissions causes NPE in UserPortal extended
Summary: Insufficient permissions causes NPE in UserPortal extended
Keywords:
Status: CLOSED DUPLICATE of bug 1286984
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.UserPortal
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ovirt-4.0.0-alpha
: ---
Assignee: Martin Mucha
QA Contact: Meni Yakove
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-23 18:53 UTC by jniederm
Modified: 2016-02-10 19:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-05 12:15:39 UTC
oVirt Team: Network
Embargoed:
ylavi: ovirt-4.0.0?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
stack_trace.txt (2.98 KB, text/plain)
2015-11-23 18:53 UTC, jniederm
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 49555 0 master ABANDONED userportal: fixed NPE. 2016-01-05 12:19:25 UTC

Description jniederm 2015-11-23 18:53:19 UTC
Created attachment 1097823 [details]
stack_trace.txt

Description of problem:
Insufficient permission causes that callback ProfileBehavior$2, method onSuccess() is passed empty list which causes NPE at line 

managementNetworkName = Linq.findManagementNetwork(clusterNetworks).getName();

Version-Release number of selected component (if applicable):
4.0 master, commit 47337ae

How reproducible:
100%

Steps to Reproduce:
1. In webadmin: create vm with disk
2. Create template of that vm
3. Add new user grant him (only) following permissions
     * VmCreator for template created in step 2
     * VmCreator for some Cluster that is in DC that is in state 'UP'
     * VmCreator for Storage Domain the disk of the template is located at
4. In UserPortal extended: log as newly created user
5. Open New VM dialog

Actual results:
Exception is thrown to browser console, pink popup in UI

Expected results:
New VM dialog is open and/or user is notified that permissions are insufficient/set in a wrong way.

Comment 1 Alona Kaplan 2016-01-05 12:15:39 UTC

*** This bug has been marked as a duplicate of bug 1286984 ***


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