Bug #46297 mysql-workbench fails to open files with spaces in path
Submitted: 20 Jul 2009 5:07 Modified: 15 Jan 2010 16:55
Reporter: Rocko Requin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.16-1 OS:Linux (Ubuntu 9.04 (amd64))
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: filename, spaces

[20 Jul 2009 5:07] Rocko Requin
Description:
mysql-workbench can't open files with spaces in the path, either from a nautilus launcher or the command line. It doesn't matter where the space(s) occur(s) in the path.

How to repeat:
Test case 1:

1. Save an mwb file, eg ~/test.mwb.

2. Move the file into a folder with spaces in the name, eg ~/data model/test.mwb:

 cd
 mkdir data\ model
 mv test.mwb data\ model/

3. These commands both fail to open the file:

 mysql-workbench data\ model/test.mwb
 mysql-workbench "data model/test.mwb"

The error message given is "Could not open document 'model/test.mwb'", ie mysql-workbench is failing to parse the command line arguments correctly.

Test Case 2:

The same happens if the file has a space in its name, eg:

1. Save a file as "test 1.mwb"

2. Both these commands fail to open the file:

mysql-workbench test\ 1.mwb
mysql-workbench "test 1.mwb"
[20 Jul 2009 6:29] Valeriy Kravchuk
Thank you for the bug report. Verified just as described. Workaround (for some cases) is to open these files using File > Open menu item.
[19 Oct 2009 9:36] Craig Fowler
Just chiming in that I just tripped over this in 5.2.4 alpha (Linux/x86 Debian Squeeze using the Ubuntu Jaunty .deb installer).

Will go with the workaround for now.
[6 Jan 2010 14:26] Alfredo Kojima
Fixed (was a problem in wrapper shell script)
[12 Jan 2010 19:22] Johannes Taxacher
fix confirmed. will be included in 5.2.12
[15 Jan 2010 16:55] Tony Bedford
An entry has been added to the 5.2.12 changelog:

When running MySQL Workbench from the command line, it could not open model files where the path contained a space.