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

Bug 895147

Summary: webadmin: we allow sending users search while there is no domain in the domains drop-down
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engine-webadmin-portalAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.2CC: acathrow, dyasny, ecohen, hateya, iheim, oourfali, Rhev-m-bugs, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-06 17:05:09 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:
Bug Depends On:    
Bug Blocks: 888878    
Attachments:
Description Flags
log none

Description Dafna Ron 2013-01-14 17:19:21 UTC
Created attachment 678315 [details]
log

Description of problem:

my first LDAP is down and it takes time for engine to skip to the second server. 
during that time if I close and reopen the dialogue all domains disappear from the scroll (even internal) and we are able to send search users requests while the scrollbar is empty. 

engine will show the following: 

Failed to run command LdapSearchGroupsByQueryCommand. Domain is null. User is null.}

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

si26

How reproducible:

100%

Steps to Reproduce:
1. search for users while the first LDAP is down
2. close and reopen the dialogue until the scrollbar is empty
3. send a search
  
Actual results:

Failed to run command LdapSearchGroupsByQueryCommand. Domain is null. User is null.}

Expected results:

UI should not allow to send the search

Additional info: log

Comment 1 Yair Zaslavsky 2013-02-17 13:03:20 UTC
This happens because each time you open the window, we run a query that takes a long time, and there is a limitation on the number of queries that can be handled.
We should make this query asynchronous which requires both client and server work.
I suggest to move this to future.

Comment 3 Yair Zaslavsky 2013-02-17 13:12:07 UTC
*** Bug 844733 has been marked as a duplicate of this bug. ***

Comment 4 Yair Zaslavsky 2013-02-18 10:22:41 UTC
*** Bug 895142 has been marked as a duplicate of this bug. ***

Comment 5 Yair Zaslavsky 2013-02-18 10:23:45 UTC
Einav, what do you think about Comment #1?

Comment 6 Einav Cohen 2013-02-22 00:43:42 UTC
- I assume we are talking about the Domains drop-down, not scroll bar
[scroll-bar is what you have on the right-hand edge of your browser's window]
-> changing subject accordingly.

- In addition to making this query asynchronous, we should do a couple of things:

1. add progress animation while the dialog is loading (once opening it) - see an example for dialog loading progress animation when opening the New VM dialog.

2. Disable the "Search" button within the dialog as long as the Domain drop-down is empty.

Comment 7 Yair Zaslavsky 2013-03-06 17:05:09 UTC

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