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: 2023-02-05 06:04 UTC (History)
2 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.
Comment 3 QA Administrators 2023-02-05 03:20:24 UTC
Dear Francesco `ascii` Ongaro,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team