Bug #32609 Failure to save document (workbench model)
Submitted: 22 Nov 2007 8:46 Modified: 20 Feb 2008 20:37
Reporter: Niko Kotiniemi Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.9 beta, 5.0.10, 5.0.11a OS:Windows (xp sp2 home edition)
Assigned to: CPU Architecture:Any

[22 Nov 2007 8:46] Niko Kotiniemi
Description:
Upon starting with a new eer model diagram and creating the first table, attempts to save the document always return a mysql workbench error: 
"Could not save document. Error saving document contents: Failure to create temporary file: No such file or directory.

How to repeat:
Start program -> Add diagram -> add a table (table tool on left, clicked on canvas) -> attempt to save from the save button at the top menu (below file) and from file->save as.
[2 Dec 2007 12:51] Sveta Smirnova
Thank you for the report.

We can not repeat described behaviour. Please try with current version 5.0.10 and if problem still exists indicate if you fill something into file name field.
[5 Dec 2007 9:48] Niko Kotiniemi
I've tested this both with the OSS edition and Standard edition but the bug has been only reported on the OSS edition.

According to the request: 
- I uninstalled the 5.0.10 standard edition, installed 5.0.10 OSS edition (so that they don't co-exist)
- started the program
- pressed Add diagram in the EER model
- created a new table from the button on the left (Place a new table (T)), placing it on the canvas
- right clicked on the table and changed the name to "test" 
- opened the file menu from the top -> Save as
- filename: "test2", filetype: MySQL Workbench models (*.mwb)

I receive the same error as before:
"Could not save document.

Error saving document contents: Failure to create temporary file: No such file or directory"

As this appears to me like a user privilege problem (although that's not an issue, I was using an account with admin rights), I decided to test to make sure that the path isn't too long or somesuch (as the file saving attempt was to desktop) and saved in the hard-drive root (c:) and received the following error message:

"Could not save document to C:\test2.mwb

Could not create new file."

BUT, repeating the same:

Save As -> filename "test2", filetype "MySQL Workbench Models (*.mwb)" passed without error. I repeated this with a fresh filename (test3 etc.) and the same pattern repeated. 

The test could not be repeated at the desktop, only at the root (possibly sub-folders).

On a side-note, I use Dbdesigner 4 on the desktop just file, with the same default complete install option.
[12 Dec 2007 6:57] Sean Wang
I have encountered the same failure on saving workbench project. I'm using version 5.0.10 OSS on Windows XP SP2 Chinese. The error message: "Failure to create temporary file: Invalid argument" happens if the saving path of project contains double-byte Chinese characters. When I saved it somewhere else to avoid Chinese folder name such as "D:\test.mvb", It worked just fine. Maybe there is an encoding problem here, or the project-saver classes didn't use wide-string property to store path variable... just a guessing.
[20 Dec 2007 19:44] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.11a, and inform about the results.
[24 Dec 2007 1:11] Sean Wang
OK, I have installed 5.0.11a, the bug remains.

How to recreate:
The folder name of "Desktop" is translated into Chinese in Chinese version of Windows, maybe this keyword is also being translated in all different native language versions. So the step is:

1.Start MySQL Workbench.
2.Create a new project.
3.Save it to Desktop.

The error message is: Could not save document. Error saving document contents: Failure to create temporary file: No such file or directory.
[14 Jan 2008 18:57] Niko Kotiniemi
I confirm that with finnish language Windows XP Home edition, the same error message is repeated with an attempt to save the model to desktop:

"Could not save document.

Error saving document contents: Failure to create temporary file: No such file or directory".

Attempt to save to my documents on the same machine gives the following error:

"Could not save the document to C:\Documents and Settings\niko\Omat tiedostot\testi.mwb

Could not create new file".

As with earlier reports, renewed attempt to save into the same (my documents) was met with success, no error messages. 

Sorry for posting so late, I had to reinstall the laptop - now fresh and fully updated though. The problem persists. 

Kindest regards, 

Niko Kotiniemi
[15 Jan 2008 5:58] Valeriy Kravchuk
May be a duplicate of bug #33394 (already closed). Please, check with the next version (when it will be available) and inform about the results.
[16 Feb 2008 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[20 Feb 2008 20:31] Niko Kotiniemi
I was no longer able to replicate the bug, seems that it was fixed in 5.0.13 when the encodings (?) were fixed.
[20 Feb 2008 20:37] Sveta Smirnova
Thank you for the feedback.

Status set to "Can't repeat" because last comment.