Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1391097

Summary: Error on deselecting checkbox "Connect Automatically"
Product: [oVirt] ovirt-engine Reporter: Andrei Stepanov <astepano>
Component: Frontend.UserPortalAssignee: Ravi Nori <rnori>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.5.5CC: astepano, bugs, michal.skrivanek, mperina, rnori
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 15:15:01 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
screenshot
none
Info about user none

Description Andrei Stepanov 2016-11-02 14:38:55 UTC
Each login to user a portal causes an auto-connection to a VM.

ovirt-engine-4.0.5.5-0.1.el7ev.noarch

How reproducible: always.

1. Have a running VM.
2. Authenticate to user-portal.
3. .vv file will be proposed for opening.
(we need to turn this off)
4. Click on user name at the upper-right corner of the UserPortal.
5. Click options.
6. Remove checkbox from: "Connect Automatically".
7. Try to save changes.

Got pop-up window with: Operation canceled.
Error while executing action: User is not authorized to perform this action.

See attached screenshot.

engine log:

2016-11-02 15:04:52,050 INFO  [org.ovirt.engine.core.bll.AddUserProfileCommand] (default task-23) [57181abf] No permission found for user '02724e6a-c935-4d46-858f-17a270c8ca04' or one of the groups he is member of, when running action 'AddUserProfile', Required permissions are: Action type: 'USER' Action group: 'EDIT_PROFILE' Object type: 'System'  Object ID: '02724e6a-c935-4d46-858f-17a270c8ca04'.
2016-11-02 15:04:52,051 WARN  [org.ovirt.engine.core.bll.AddUserProfileCommand] (default task-23) [57181abf] Validation of action 'AddUserProfile' failed for user auto.redhat.com-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__USER_PROFILE,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION

Comment 1 Andrei Stepanov 2016-11-02 14:44:51 UTC
Created attachment 1216588 [details]
screenshot

Comment 2 Martin Perina 2016-11-03 08:04:13 UTC
Ravi, could you please take a look?

Comment 3 Ravi Nori 2016-11-03 12:23:51 UTC
Can you provide me with addition details about the user. Whether he is an active directory user, did the user authenticate using group permissions and what the permissions for the group are

Comment 4 Andrei Stepanov 2016-11-03 12:40:44 UTC
Created attachment 1216951 [details]
Info about user

Comment 5 Andrei Stepanov 2016-11-03 12:42:15 UTC
Ravi Nori see attachment https://bugzilla.redhat.com/attachment.cgi?id=1216951

User is IPA account. This user logins in portal using "spiceqe" group permissions.

Comment 6 Ravi Nori 2016-11-03 15:15:01 UTC

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