Bug 125019 - Misleading error message for FODT Write Errors. The file could not be written.
Summary: Misleading error message for FODT Write Errors. The file could not be written.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Error-Messages ODF-Flat
  Show dependency treegraph
Reported: 2019-04-29 08:35 UTC by Francesco `ascii` Ongaro
Modified: 2021-02-04 11:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

fo.fodt (14.09 KB, application/vnd.oasis.opendocument.text)
2019-04-29 16:55 UTC, Oliver Brinzing

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco `ascii` Ongaro 2019-04-29 08:35:32 UTC
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 users@global.libreoffice.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

Actual Results:
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.

Expected Results:
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.

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Oliver Brinzing 2019-04-29 16:55:54 UTC
Created attachment 151073 [details]
Comment 2 Oliver Brinzing 2019-04-29 17:00:01 UTC
>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.