Bug #56315 Application Crash when FK name has focus and Close Model Button is clicked
Submitted: 26 Aug 2010 23:23 Modified: 17 Sep 2010 14:12
Reporter: Anil Natha Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.26 OS:MacOS (10.6.4)
Assigned to: Alfredo Kojima CPU Architecture:Any

[26 Aug 2010 23:23] Anil Natha
Description:
The application crashes if focus is set to the field that allows you to change the name of a FK in the table description panel and you click on the button to close the model.

How to repeat:
1. Start WB
2. Create a new EER Diagram.
3. Add a new table, name it table1
4. Add a column named table1_id, set it to INT, PK, NN
5. Add a column named table2_id, set it to INT, NN
6. Add a new table, name it table2
7. Add a column named table2_id, set it to INT, PK, NN
8. Select table1 and in the table information panel at the bottom select the "Foreign Keys" tab.
9. Create a new foreign key named "fk_table2", referencing table "table2", associate column table2_id in table1 to column table2_id in table2
10. Save document.
11. Double Click on the Foriegn Key name you just created so that the name becomes a text field as if you were going to rename the foreign key.
12. Click on the little circle with an x in it that closes the Model that you currently have open.
13. After clicking on the x the application will crash.
[27 Aug 2010 4:39] Valeriy Kravchuk
Thank you for the bug report.
[14 Sep 2010 6:15] Alfredo Kojima
Please try if you can repeat with WB 5.2.27
[14 Sep 2010 6:31] Alfredo Kojima
Nevermind, I was able to repeat. This has been fixed.
[14 Sep 2010 15:20] Anil Natha
Hey Alfredo,

I'm confused.  In your last statement you said "... I was able to repeat. This has been fixed."

You were able to repeat the bug, but it has been fixed?
[16 Sep 2010 20:29] Johannes Taxacher
Anil,
we were able to repeat, and now we fixed it ;)

fix confirmed in repository
[17 Sep 2010 14:12] Tony Bedford
An entry has been added to the 5.2.28 changelog:

If a foreign key was about to be renamed, and the corresponding text field had focus, MySQL Workbench crashed if the model was then closed.