Naming new workspace: slash, asterisk, etc. not escaped or filtered; write of workspace file fails

• Jun 1, 2015 - 23:35
Type
Functional
Severity
S4 - Minor
Status
closed
Project

To reproduce:

Edit > Workspaces > New... (or the "+" button beside the workspace dropdown menu at the bottom of the palettes window)
Enter a workspace name with a slash or asterisk (or, presumably, other reserved characters not allowed in filenames on your system).
enter name with slash.jpg

Expected:
Preferably: it just works (reserved characters get escaped for the filename);
Alternatively: it rejects the workspace name, with a message explaining which characters are illegal.

Observed: error message popup "Writing Workspace File path/to/bad-workspace-name.workspace failed:" occurs immediately, and when switching from a "badly-named" workspace to another, and when quitting MuseScore if a "badly-named" workspace is active.
write failed with reserved char in name.jpg

(I'm using MuseScore 2.0.1 on Windows 7; the bug is also in the latest nightly 31a8d3d .)


Comments