Bug #51519 Path delimiter in default Export Directory Path is mixed ("\" and "/")
Submitted: 25 Feb 2010 17:49 Modified: 7 May 2010 14:44
Reporter: Kai Sautter (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S3 (Non-critical)
Version:5.2.16 OS:Windows (XP)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: qc

[25 Feb 2010 17:49] Kai Sautter
Description:
The default Export Directory Path in the Workbench Preferences is given as "<DriveLetter>:\<MyDocumentsPath>/dumps". There is a mix of directory delimiters. WB seems to take the content of the system variable holding the path to the MyDocuments virtual folder and adds "/dumps" to it.

Calling the "Browse for Folder" dialog (using the "..." button to the right of the text box) the following behaviour can be fund:

- If the "dumps" folder does not exist in MyDocuments, MyDocuments is activated in the folder tree

- If the "dumps" folder exists in MyDocuments, the root element of the tree (Desktop) is selected.

How to repeat:
I) Default settings:
1) Prepare a new installation of WB version 5.2.16
2) On the Home tab go to to Edit --> Preferences...

II) Browse for Folder behavior:
A) without folder "dumps":
0) Make sure there is no folder f:\foo\dumps
1) Set the Export Directory Path in the Workbench Preferences manually to e.g. f:\foo/dumps
2) Call the Browse for Folder dialog

B) with folder "dumps"
1) Create folder f:\foo\dumps
2) On the Home tab go to to Edit --> Preferences...
3) Call the Browse for Folder dialog

Suggested fix:
Change the interpretation of path separators to either allow both "/" and "\" or make sure, that also on Windows platforms WB always uses "/" internally (and does a translation when accessing the file system).
[25 Feb 2010 17:58] Valeriy Kravchuk
Thank you for the problem report.
[6 May 2010 9:27] Johannes Taxacher
fix confirmed in repository
[7 May 2010 14:44] Tony Bedford
An entry has been added to the 5.2.21 changelog:

The default Export Directory Path in the Workbench Preferences dialog was given as DriveLetter:\MyDocumentsPath/dumps. This mixed the '/' and '\' directory separators.

Further, the preferred Export Directory Path set in the Workbench Preferences dialog, was not reflected in the Export to Disk section of the Data Dump facility in the Administrator.