Bug #51448 Server Administration in MYSQL Workbench-Manage security
Submitted: 24 Feb 2010 7:57 Modified: 27 Mar 2010 11:23
Reporter: Sadia Azeem Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.16 oss beta OS:Windows (Windows 7 64-bit, 2008 R2 Standard Edition, XP SP3)
Assigned to: CPU Architecture:Any

[24 Feb 2010 7:57] Sadia Azeem
Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException: External component has thrown an exception.
   at MySQL.Forms.DrawBoxImpl.drawbox_mouse_click(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
After I created new MYSQL database from database developer, I have created SQL DB instance from Server Administration and then clicked on "Manage security" to open manage user accounts and to create user it gives me above exception
[27 Feb 2010 11:16] Valeriy Kravchuk
Bug #51569 was marked as a duplicate of this one.
[27 Feb 2010 11:19] Valeriy Kravchuk
Bug #51471 was marked as a duplicate of this one.
[27 Feb 2010 11:21] Valeriy Kravchuk
Bug #51520 was marked as a duplicate of this one.
[27 Feb 2010 11:23] Valeriy Kravchuk
I've found many similar bug reports. Please, check them.

What Windows version do you use? Does it happen with local or remote instance for you?
[1 Mar 2010 8:36] Mike Lischke
I can reproduce the problem with WB on Win7. Create a new server instance entry, but select the wrong OS type (e.g. I created one for localhost but with OS X as OS type). It crashs every time when I try to open it via Manage Security. However it crashes also with all my other entries except one (cannot tell any significant difference, though).
[8 Mar 2010 18:27] Alan Bounds
I configured a remote instance of MySQL against a Windows installation. This is where I received the issue (Bug 51520). Attaching a debugger to the process, I found the following exception info. I am looking deeper, but the specific issue appears to be with an attribute called 'strip':

function call error
Traceback (most recent call last):
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS/modules\wb_admin_grt.py", line 149, in openAdministrator
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS/modules\wb_admin_grt.py", line 125, in do_open_administrator
    adminTab = AdministratorTab(server_instance)
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS/modules\wb_admin_grt.py", line 95, in __init__
    self.configuration = wb_admin_configuration.WbAdminConfiguration(server_instance_settings, self.ctrl_be, self.monitor)
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS/modules\wb_admin_configuration.py", line 60, in __init__
    sys_config_path = self.ctrl_be.get_config_file_path()
  File "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS/modules\wb_admin_control_be.py", line 667, in get_config_file_path
    return self.expand_path_variables(self.settings.serverInfo['sys.config.path'].strip(" \r\t\n\b"))
AttributeError: 'NoneType' object has no attribute 'strip'
(1124.167c): C++ EH exception - code e06d7363 (first chance)
[28 Mar 2010 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".