Bug 1574000 - VMware Add Provider can validate VMRC Console credentials successfully for non-existing User
Summary: VMware Add Provider can validate VMRC Console credentials successfully for no...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.10.0
Assignee: Aparna Karve
QA Contact: Antonin Pagac
URL:
Whiteboard: console:vmrc
Depends On:
Blocks: 1591497
TreeView+ depends on / blocked
 
Reported: 2018-05-02 16:23 UTC by Kedar Kulkarni
Modified: 2019-02-11 14:02 UTC (History)
10 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1591497 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:02:00 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot1 (50.38 KB, image/png)
2018-05-02 16:24 UTC, Kedar Kulkarni
no flags Details
Screenshot2 (27.18 KB, image/png)
2018-05-02 16:28 UTC, Kedar Kulkarni
no flags Details

Description Kedar Kulkarni 2018-05-02 16:23:59 UTC
Description of problem:
VMware Add Provider can validate VMRC Console credentials successfully for non-existing User which means if a user does not actually exists on the VMware, or you enter wrong password for existing user and click validate, the validation is successful. And you can save the provider. See screenshot1.

Once you did that, if you try to access VMRC Console you will see the error shown in screenshot2.

Version-Release number of selected component (if applicable):
5.9.2.4.20180501195858_35dc609

How reproducible:
100%

Steps to Reproduce:
1.Add VMware Provider, in that, use incorrect credentials under VMRC Console Tab
2.Try to access VMRC console
3.

Actual results:
See screenshots attached

Expected results:
Should throw error when you add wrong credentials and not validate fictional users. 

Additional info:
This does not happen if you edit the provider. Validation fails in the Edit Provider form for exact same creds that you validated before. 

Believe its regression, haven't tested which version it broke at exactly though.

Comment 3 Kedar Kulkarni 2018-05-02 16:24:30 UTC
Created attachment 1430188 [details]
Screenshot1

Comment 4 Kedar Kulkarni 2018-05-02 16:28:04 UTC
Created attachment 1430192 [details]
Screenshot2

Comment 9 Sudhir Mallamprabhakara 2018-05-03 14:46:24 UTC
Re-opening this after talking with Brad in IRC.

Comment 13 CFME Bot 2018-05-10 14:42:14 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/1b10a16009657f1a04ec854a55d6d4e070d7e5d9
commit 1b10a16009657f1a04ec854a55d6d4e070d7e5d9
Author:     Aparna Karve <akarve>
AuthorDate: Tue May  8 14:50:08 2018 -0400
Commit:     Aparna Karve <akarve>
CommitDate: Tue May  8 14:50:08 2018 -0400

    While validating creds on the queue, pass the creds based on the tab

    https://bugzilla.redhat.com/show_bug.cgi?id=1574000

 app/controllers/mixins/ems_common_angular.rb | 17 +-
 1 file changed, 13 insertions(+), 4 deletions(-)

Comment 15 Antonin Pagac 2018-08-08 10:59:05 UTC
Verified with 5.10.0.8.


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