Bug #49060 WB exception and crash when parsing config file
Submitted: 24 Nov 2009 19:50 Modified: 8 Dec 2009 11:13
Reporter: Todd Farmer (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2 r4753 OS:Any
Assigned to: Maksym Yehorov CPU Architecture:Any

[24 Nov 2009 19:50] Todd Farmer
Description:
I created a server profile for a 5.1 server, installed from Windows ZIP file.  I have many such servers, this one installed at D:\mysql-5.1.38-win32.  For testing purposes, I use a common my.ini file (to be attached) which is D:\general.ini.

I was able to create the server definition, but when I go in to view the configuration file, I get a mesage:

Unhandled exception:  'bool' object has no attribute 'strip'

The second time, this caused WB to fail (JIT info to be attached).

How to repeat:
See above.

Suggested fix:
Don't crash or error.
[24 Nov 2009 19:51] Todd Farmer
config file

Attachment: general.ini (application/octet-stream, text), 261 bytes.

[24 Nov 2009 19:52] Todd Farmer
WB error

Attachment: WB error.txt (text/plain), 6.02 KiB.

[24 Nov 2009 22:34] Kolbe Kegel
I get the "exception" on Linux and Mac, also. It seems to occur if I put "log-bin" in the specified my.cnf file.

It also causes duplicate sets of the config file tabs to be generated in the interface each time the Configuration interface is reloaded. (general, myisam, innodb, performance, log files, replication, networking, security, advanced, general, myisam, innodb, performance, log files, replication, networking, security, advanced, general, myisam, innodb, performance, log files, replication, networking, security, advanced...)
[1 Dec 2009 9:41] Maksym Yehorov
Fixed
[4 Dec 2009 21:04] Johannes Taxacher
fixed in 5.2.10
[8 Dec 2009 11:13] Tony Bedford
An entry was added to the 5.2.10 changelog:

A MySQL configuration file caused MySQL Workbench to crash, when an attempt was made to view it in the configuration editor of the Admin tab. The error generated was:

Unhandled exception:  'bool' object has no attribute 'strip'