Bug #62003 Modal Password prompt dialog pretends to have focus
Submitted: 27 Jul 2011 9:51 Modified: 27 Mar 2012 1:36
Reporter: Christopher Lörken Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.34 CE OS:Windows (7)
Assigned to: CPU Architecture:Any
Tags: focus, password prompt

[27 Jul 2011 9:51] Christopher Lörken
Description:
When a connection to a MySQL server is lost while the workbench is active and should be connected to the server, the workbench will prompt for the password when the server is reachable again.

The prompt comes in form of the modal dialog that pops up over all other open windows.
The problem is, that the cursor in the password field is already blinking and thus suggests that the modal dialog has taken the focus of the keyboard so you are tempted to simply type in your password and hit enter to make it disappear again.
Unfortunatley, the dialog does not have the focus at that moment so if you find yourselve chatting with a client in Skype when it happens, you just send them your root password. Not so good.

How to repeat:
- (On Windows 7) connect to a server with your workbench.
- (to be on the safe side for the reprompt): change the password on the server
- restart the mysql instance
- use some other programs and wait for the password prompt.

Suggested fix:
Either really get the focus to that textfield or at least remove the blinking cursor that suggests that the dialog has the focus.
[27 Jul 2011 10:02] Felix Faber
+1
[25 Aug 2011 21:38] Armando Lopez Valencia
Thanks a lot for your report Christopher.
Reproduced as commented by the reported (See attachment).
[25 Aug 2011 21:40] Armando Lopez Valencia
Evidence

Attachment: wrongFocus.JPG (image/jpeg, text), 123.67 KiB.

[17 Jan 2012 22:12] Alfredo Kojima
This sounds more like a Windows or .NET bug (inactive text field showing up as if it was active), but we will investigate.
[27 Mar 2012 1:36] Philip Olson
Fixed as of 5.2.39, and here's the changelog entry:

Workbench would prompt a user for the password to reconnect to
a MySQL server that had lost the connection, and this password
dialogue would not have focus yet still showed as the top window
with a blinking cursor. To reduce confusion, this password
window is no longer the top window.