Bug Hunting Session
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)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Error-Messages
  Show dependency treegraph
 
Reported: 2019-04-29 08:35 UTC by Francesco `ascii` Ongaro
Modified: 2019-04-30 12:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


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

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
Description:
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:

https://listarchives.libreoffice.org/global/users/msg54342.html

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]
fo.fodt
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.