Bug 47782 - filesave in MS .docx format truncates original file
Summary: filesave in MS .docx format truncates original file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5 all versions
Hardware: PowerPC macOS (All)
: highest blocker
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 13:35 UTC by john
Modified: 2015-03-04 12:02 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
docx file that exhibits the bug (298.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-01-10 16:43 UTC, Gordon Ross
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2012-03-23 13:35:14 UTC
when the a MS .docx file received by email is opened and then saved as MS .docx the 10 page document is truncated to 4 pages.
if the document is saved as a MS .doc file, the file is not truncated.
Comment 1 sasha.libreoffice 2012-06-18 04:17:58 UTC
Thanks for bugreport
Please, do not save documents in docx format using LibreOffcie. Or information will be lost.
Comment 2 Sebastian@SSpaeth.de 2012-08-17 09:24:45 UTC
Dear John, DATA LOSS is the worst of all possible failures.

You will have to attach such a document so that the error can be reproduced and tested, otherwise this bug is of little help to get this fixed.
Comment 3 Gordon Ross 2013-01-10 16:43:28 UTC
Created attachment 72790 [details]
docx file that exhibits the bug

This document clearly reveals the truncation bug with docx files.
Comment 4 Gordon Ross 2013-01-10 16:44:12 UTC
This bug also exist in 3.6.1.2 on MacOSX
Comment 5 Vaclav Petras 2013-09-14 23:47:24 UTC
Also true for LibreOffice 3.5.7.2 (Build ID: 350m1(Build:2)) on Ubuntu 12.04 LTS.

Confirmed with the file attached here (from 16 pages to 9 after edit and save (+close and open)) and also one other file I cannot share created in not specified version of MS Word.

Current version of LibreOffice is 4.1, can someone test it with this version?

The other comments should probably go to one of these reports at LibreOffice Bugzilla:

https://www.libreoffice.org/bugzilla/show_bug.cgi?id=43780
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46025
Comment 6 sasha.libreoffice 2013-09-16 05:07:07 UTC
in 4.0 and 4.1.1 on Fedora RFR 64 bit
document is not truncated after saving into docx and reloading, as I can see.
But document formatting in some places becomes corrupted.
Comment 7 Benjamin Herr 2014-01-04 01:35:34 UTC
I am using "Version: 4.1.4.2", "Build ID: Gentoo official package". The document in comment 3 does not seem to get truncated for me. However, libreoffice just truncated my ~22 pages document to seven pages. I believe I cannot share the .docx file, unfortunately.

I am not familiar with the .docx format but it appears that after unzipping it and stripping all the markup from word/document.xml, most of the text is still kind of there. Meanwhile, other .docx consumers refuse to open the file at all.
Comment 8 Benjamin Herr 2014-01-04 03:14:31 UTC
Ignore me, I think I wanted #55820
Comment 9 retired 2014-01-04 10:51:15 UTC
Hi all, while I see some odd behavior and slight differences when comparing the test document in Word2010 and LO 4.2.0.1 pages are the same amount.

Next I tried resaving to a new docx file. Then compared the two LO files (existing docx and newly created docx from test file), they are identical.

Thus setting to WORKSFORME.

I know similar issues do appear occasionally but with 4.2.0.1 and this test file it seems to no longer happen, so I suggest, if any of you run into a similar problem please make sure to create a new bug and we can start a new investigation of what's going on.
Comment 10 Salvador 2015-02-19 08:43:22 UTC
this problem is still in versions 3.5
A 29 pages .docx file saved with that extension and reopened only includes 7 pages
Comment 11 geraldg 2015-03-04 09:17:29 UTC
Checked in 4.4.1.2
No Problems
Comment 12 Buovjaga 2015-03-04 12:02:40 UTC
(In reply to Salvador from comment #10)
> this problem is still in versions 3.5
> A 29 pages .docx file saved with that extension and reopened only includes 7
> pages

Version 3.5 is obsolete. It would be different, if you would see the problem in versions 4.3.6 to 4.4.1.

Setting back to WFM per other comments in 2015.