Bug 126435 - Data loss in docx with Citation reference in Footnote
Summary: Data loss in docx with Citation reference in Footnote
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, dataLoss, filter:docx, regression
Depends on:
Blocks: DOCX-Footnote-Endnote
  Show dependency treegraph
 
Reported: 2019-07-16 20:08 UTC by Devon Powell
Modified: 2023-09-07 19:01 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document with citation reference (22.52 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-07-16 20:09 UTC, Devon Powell
Details
Two very similar .docx files, one with problem, other without (32.73 KB, application/zip)
2019-08-03 08:23 UTC, deleyd@ieee.org
Details
How it looks in MSO 2010 (89.37 KB, application/pdf)
2019-08-08 11:44 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devon Powell 2019-07-16 20:08:27 UTC
Description:
MS Word document with Citation reference in Footnote is not rendered successfully. Stopped rendering from the footnote reference.

Steps to Reproduce:
1.Open attached document with LibreOffice Writer
2.Note the document stopped rendering after first footnote reference


Actual Results:
Document not converting entirely. 

Expected Results:
Document not converts entirely.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Devon Powell 2019-07-16 20:09:34 UTC
Created attachment 152818 [details]
Test document with citation reference
Comment 2 Dieter 2019-07-20 05:22:10 UTC
Mohammed, I think the biggest problem is, that text gets lost

WS Word: 3 pages, 2 citations, bibliography and 912 words
LO: 1 page, 1 citation and 172 words Text ends behind the first footnote

Do you get the same result?

Version: 6.4.0.0.alpha0+ (x64)
Build ID: 2f2f4767089512c34514896bc37823f9310e9dd4
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-07-10_02:13:57
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded
Comment 3 deleyd@ieee.org 2019-08-03 08:23:42 UTC
Created attachment 153114 [details]
Two very similar .docx files, one with problem, other without

Two very similar files:
Citation Reference - Test2updated10.docx 
has the problem, 
Citation Reference - Test2updated11.docx 
does not.

Renaming the files from .docx to .zip, unzip, compare results, shows the difference is in file word\footnotes.xml

(Visual Studio can format the .xml files better. Load .xml file into Visual Studio, do CTRL-K CTRL D)
Comment 4 Xisco Faulí 2019-08-08 11:44:50 UTC
Created attachment 153224 [details]
How it looks in MSO 2010
Comment 5 Xisco Faulí 2019-08-08 11:48:56 UTC
Reproduced in

Version: 6.4.0.0.alpha0+
Build ID: 63889d3d465e9b4292dd5bb630bd3394494c8a6d
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES-valencia (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

but not in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 6 Xisco Faulí 2019-08-08 11:55:35 UTC
Regression introduced by:

author	sushil_shinde <sushil.shinde@synerzip.com>	2014-06-09 16:23:48 +0530
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2014-06-11 11:21:35 +0200
commit 63d1aa4dc8aa70256edb19638bcab3a6d5b1f3b6 (patch)
tree 85e6ea0f08415258151a93c2e78a8d198b5d8161
parent e19670ac3cbef9f0e83edda7576b6462e21e62b5 (diff)
fdo#78885 : File crashed while opening in LO

Bisected with: bibisect-44max
Comment 7 Xisco Faulí 2019-08-08 12:04:11 UTC
Hi Miklos, Justin,
I thought you might be interested in this issue. Reverting https://cgit.freedesktop.org/libreoffice/core/commit/?id=63d1aa4dc8aa70256edb19638bcab3a6d5b1f3b6 would fix this issue, and the document from bug 78885 wouldn't crash, however it prompts a 'Incorrect file content' warning
Comment 8 Justin L 2019-08-12 07:31:03 UTC
Reverting also doesn't fix Test2updated10.docx from comment 3. That one seems to have one too many m_aTextAppendStack.pop().
Comment 9 Justin L 2019-08-12 18:35:39 UTC
prior to this LO 4.3 commit 598d02d71f40901eab9275704c8bc0e1641b56e3, the bibliography was just imported as plain text (I think). This is just a codepointer for insight into the bibliography/citation code.
Author:     Rohit Deshmukh <rohit.deshmukh@synerzip.com>
CommitDate: Wed Feb 26 12:50:29 2014 +0100
        fdo#75133: Preseved bibliography after round trip.