Bug 1389297

Summary: [User Portal] UserProfileEditor enables 'Extended' view in User Portal
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: Frontend.UserPortalAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.5.3CC: bugs, michal.skrivanek
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 13:11:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Belka 2016-10-27 12:01:50 UTC
Description of problem:

UserProfileEditor enables 'Extended' view in User Portal, this seems odd. My user had only UserRole (ie. Basic view in UP) and because BZ1389251 I added for my user UserProfileEditor on whole System (in Admin Portal -> Configure -> System Permissions) and after reloading UP I see new Extended view tab appeared.

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

How reproducible:
100%

Steps to Reproduce:
1. have an user with UserRole and UserProfileEditor role (on system in my case)
2. login to UserPortal
3. observe if Basic and/or Extended views are visible

Actual results:
Extended view is visible even "practical" role is UserRole which should be Basic view only

Expected results:
only Basic view should be there as user's profile properties is independed to "view" (ie. Basic vs Extended)

Additional info:

Comment 1 Tomas Jelinek 2016-11-03 13:11:44 UTC
Well, the way how the extended view is shown/hidden is odd. It works like this:
- If you have only UserRole permissions or one of:
  Everyone/UserPoralBasedVM permissions and
  Everyone/QuotaConsumer persmissions
  Everyone/NetworkUser persmissions
  Everyone/DiskProfileUser permissions
  Everyone/CpuProfileOperator permissions

than only the basic view is shown

- if you have any other permission, than the extended view is shown.

So, in your case, you gave the user one more permission, so the extended view has been shown. Once the BZ1389251 will be fixed, you will not need to add this role explicitly so you will not face this issue.

Since this is just a walkaround for a bug which is being fixed, I would not add this permission as an exception to userportal. A new basic user portal PoC is being prototyped anyway where this will be solved differently and this issues will not pop up. 

So, Im closing this as wont fix.