Bug #41430 When creating new multiple user accounts the Query Analyser Settings are hidden
Submitted: 12 Dec 2008 12:45 Modified: 14 Jan 2009 14:20
Reporter: Rene' Cannao' Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S3 (Non-critical)
Version:2.0.0.7122 OS:Any
Assigned to: Josh Sled CPU Architecture:Any
Tags: creation, mem, role, users

[12 Dec 2008 12:45] Rene' Cannao'
Description:
When creating new multiple user accounts, the first attempt work fine.
All the other following attempts to create new users does not show the Query Analyzer Options in the "Create User" popup until the role field is not changed.

This issue is related to the browser executing javascript code and does not affect all the browser.

So far reproduced on Firefox 3.0.3 and Opera 9.51. Other releases may be affected as well.

How to repeat:
From Enterprise Dashboard go on:
"Settings" -> "Manage Users" -> "create user"
The "Create User" popup is displayed showing the Query Analyzer Settings v. A user can be created.

Clicking again on "create user" will display the "Create User" popup without showing the Query Analyzer Settings.

Suggested fix:
Make javascript functions compatible for all browsers.

Firefox Error Console shows the error: "select is null" on:
   var idx = select.selectedIndex;
in function syncRoleSelector(select, panelId)
[12 Dec 2008 16:57] Gary Whizin
addl step instructions to repeat:
1) first time, select DBA role, then save
2) immediately click CREATE again, note that DBA role is still selected but no query analysis options are present. 

Workaround: select a different role, then select DBA role
[12 Dec 2008 17:54] Josh Sled
revno: 6542
revision-id: jsled@asynchronous.org-20081212175305-ezog14k9kyszqrrv
parent: andy@mysql.com-20081212013007-95rnpmx9hz9jd8mf
committer: Josh Sled <jsled@asynchronous.org>
branch nick: 2.0
timestamp: Fri 2008-12-12 12:53:05 -0500
message:
  Bug#41430: correct javascript control mangling on manageUsers after creating a DBA-role user
[18 Dec 2008 18:50] Bill Weber
verified fixed in build 2.0.2.7126
[14 Jan 2009 14:20] Tony Bedford
An entry was added to the 2.0 changelog:

When creating new multiple user accounts, the first attempt worked fine. However, following attempts to create new users did not show the Query Analyzer Options in the Create User popup until the role field was changed.