Bug #48345 Workbench overwrites existing projects on saving without warning
Submitted: 27 Oct 2009 9:43 Modified: 4 Nov 2009 14:23
Reporter: Susanne Ebrecht Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.6 OS:Linux (Ubuntu)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: TTREV

[27 Oct 2009 9:43] Susanne Ebrecht
Description:
Testing with Workbench 5.2:

1) Open Workbench
2) New Model
3) Add Diagram
4) Place a table with two columns
5) Save Model and name it foo.mwb
6) Close Workbench
7) Open Workbench
8) New Model
9) Add Diagram
10) Place a table without columns
11) Save Model and  name it foo.mwb

No warning happened. Nothing. No hint that foo.mwb already exist. No question  if it
should get overwritten or not.

It just will get overwritten and all data from the original foo.mwb are gone away.

That is very dangerous. Usually there should happen a popup that foo.mwb already exist and
the question if you want to overwrite it or not.

How to repeat:
See above

Suggested fix:
Make a popup here with warning that project already exist and ask if it should be overwritten or CANCEL.
[27 Oct 2009 9:48] Susanne Ebrecht
Tested on Ubuntu 9.04
[3 Nov 2009 14:14] Johannes Taxacher
this has been fixed in our repository and will be included in release 5.2.7
[4 Nov 2009 14:23] Tony Bedford
An entry was added to the 5.2.7 changelog:

On Ubuntu Linux, MySQL Workbench did not warn if a new model was to be saved as a file that already existed on the drive.