When FODT and ODT files are saved from old/incorrect documents XML a misleading error is shown to the user:
- Error in writing sub-document styles.xml
- The file could not be written
- Generic I/O error
The problem has been tracked down to be an XML issue and not a permission issue.
In the particular case once valid FODT files become invalid in later LibreOffice versions and require a certain degree of expertise to be fixed or even to detect the root cause of the problem.
If needed a detailed thread on firstname.lastname@example.org can be found here:
Steps to Reproduce:
1. Download http://paste.arn-fai.net/?2874269 and rename it to foo.fodt
2. Open with Writer
3. Save in FODT or ODT
A misleading error message is shown. The same error is for permission issues, profile issues and more. In reality it's an XML validity error.
The UI is not correctly describing what is an XML error and it should prompt a more specific error message (for example "Cannot save malformed XML") and maybe a technical detail could be outputted to in the console.
User Profile Reset: No
Created attachment 151073 [details]
>A misleading error message is shown.
confirming, if one tries to save as *.odt, error message changes:
> Error saving the document fo:
> Write Error.
> Error in writing sub-document styles.xml.