Bug 120795 - LO Writer: Error saving the document: Write error The file could not be written
Summary: LO Writer: Error saving the document: Write error The file could not be written
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha1+
Hardware: All Linux (All)
: medium normal
Assignee: Julien Nabet
URL:
Whiteboard: target:6.2.0 target:6.1.3
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2018-10-22 14:28 UTC by Vera Blagoveschenskaya
Modified: 2018-10-23 09:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (26.37 KB, image/png)
2018-10-22 14:28 UTC, Vera Blagoveschenskaya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vera Blagoveschenskaya 2018-10-22 14:28:23 UTC
Description:
Error saving the document <>: Write error 
The file could not be written

Steps to Reproduce:
1. Open LO Writer, new document, write 'test'
2. Save as -> select .xml format

Actual Results:
Error saving the document <>: Write error 
The file could not be written

See screenshot

Reproduced for

Version: 6.2.0.0.alpha1
Build ID: ff46ad24d1d3cbcea45895520483ed1fd4ff488b
CPU threads: 1; OS: Linux 4.14; UI render: default; VCL: kde5; 
Locale: ru-RU (ru_RU.UTF-8); Calc: threaded

Expected Results:
Saving w/o error


Reproducible: Always


User Profile Reset: No



Additional Info:
Also reproduced for 

Version: 6.1.2.1
Build ID: 65905a128db06ba48db947242809d14d3f9a93fe
CPU threads: 4; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: ru-RU (ru_RU.UTF-8); Calc: group threaded

NOT reproduced for

Version: 5.4.7.2
Build ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU threads: 1; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: ru-RU (ru_RU.UTF-8); Calc: group

Also see https://bugs.documentfoundation.org/show_bug.cgi?id=107881
Comment 1 Vera Blagoveschenskaya 2018-10-22 14:28:50 UTC
Created attachment 145909 [details]
screenshot
Comment 2 Julien Nabet 2018-10-22 21:05:53 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I noticed these logs:
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:342: parser error : Opening and ending tag mismatch: when line 234 and choose
        </xsl:choose>
                     ^
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:343: parser error : Opening and ending tag mismatch: when line 231 and template
    </xsl:template>
                   ^
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:344: parser error : Opening and ending tag mismatch: when line 228 and stylesheet
</xsl:stylesheet>
                 ^
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:345: parser error : Premature end of data in tag choose line 215

^
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:345: parser error : Premature end of data in tag template line 213

^
file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl:345: parser error : Premature end of data in tag stylesheet line 19

^
compilation error: file file:///home/julien/lo/libreoffice/instdir/program/../share/xslt/export/wordml/ooo2wordml.xsl line 27 element include
xsl:include : unable to load file:/home/julien/lo/libreoffice/instdir/share/xslt/export/wordml/ooo2wordml_list.xsl

Regression from https://cgit.freedesktop.org/libreoffice/core/commit/?id=1501df419ea4d40358d705a281fd9662088ba51e

Just some elements missing

I submitted this patch on gerrit: https://gerrit.libreoffice.org/#/c/62205/
Comment 3 Commit Notification 2018-10-23 05:19:42 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=2995a95d8efa727ea53b06323c0b2bdc52e1aed0

tdf#120795: fix ooo2wordml_list.xsl syntax

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Vera Blagoveschenskaya 2018-10-23 06:10:15 UTC
Just FYI: calling libreoffice with gtk3
$ SAL_USE_VCLPLUGIN=gtk3 libreofficedev6.2 --writer

--> leads to the same error
Comment 5 Commit Notification 2018-10-23 06:22:50 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "libreoffice-6-1":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=790af9d119094bb2e47bac29017b392ecaa8df30&h=libreoffice-6-1

tdf#120795: fix ooo2wordml_list.xsl syntax

It will be available in 6.1.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Xisco Faulí 2018-10-23 09:32:56 UTC
Verified in

Version: 6.2.0.0.alpha1+
Build ID: cd6dd8c6f3562cbccbc971b916c6a8933840ffeb
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: threaded

@Julien Nabel, thanks for fixing this!!
Comment 7 Commit Notification 2018-10-23 09:34:55 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "libreoffice-6-1-3":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=58997aa0fc81ca5140a638127b8b7d5b31204ad0&h=libreoffice-6-1-3

tdf#120795: fix ooo2wordml_list.xsl syntax

It will be available in 6.1.3.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.