Bug 105688 - SAXParseException error on particular document
Summary: SAXParseException error on particular document
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.4.0 target:7.2.0
Keywords: filter:docx
Depends on:
Blocks: DOCX-SAXParse
  Show dependency treegraph
 
Reported: 2017-02-02 06:21 UTC by russianneuromancer
Modified: 2021-04-28 15:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
document (115.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-02-02 08:26 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description russianneuromancer 2017-02-02 06:21:37 UTC
Description:
Document that available in Download section on this page https://customers.microsoft.com/en-us/story/turkish-bank-upgrades-communications-to-respond-faster can not be opened in LibreOffice and Collabora Online.



Steps to Reproduce:
1. Open page https://customers.microsoft.com/en-us/story/turkish-bank-upgrades-communications-to-respond-faster 
2. Click on download link in Download section of this page.
3. Try to open downloaded document in LibreOffice or Collabora Online.

Actual Results:  
Error messages:

LibreOffice Writer:
File format error found at 
SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 108499(row,col).
After click on OK LibreOffice Writer exit.

Collabora Online:
Failed to load the document. Please ensure the file type is supported and not corrupted, and try again.
Then instead of returning to documents list Collabora Online stay open with "Connecting..." progress indicator which is probably shouldn't happen in case of such error.

Expected Results:
LibreOffice Writer: open document.
Collabora Online: open document or at least exit gracefully after displaying error message.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 OPR/42.0.2393.517
Comment 1 Xisco Faulí 2017-02-02 08:26:18 UTC
Created attachment 130823 [details]
document
Comment 2 Xisco Faulí 2017-02-02 08:27:50 UTC
Confirmed in

Version: 5.4.0.0.alpha0+
Build ID: fc53cce64400430cdc21f79c959d75fb9a26d13d
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Adding 	Mike Kaganski as he might be interested in this one
Comment 3 Commit Notification 2017-05-09 06:55:36 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

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

tdf#105688: findZOrder: catch exceptions from getPropertyValue

It will be available in 5.4.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 Xisco Faulí 2017-05-20 10:15:57 UTC
Confirmed in

Version: 5.5.0.0.alpha0+
Build ID: fa89a464ca9c76332f533da0ab641da5acd00b52
CPU threads: 1; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-05-19_01:24:56
Locale: es-ES (es_ES); Calc: group

@Mike, could you please close this a RESOLVED FIXED ?
Comment 5 Commit Notification 2021-04-28 15:25:17 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8c8979468835694de949c044bb698c6d5ae10d19

tdf#105688: sw_ooxmlexport16: Add unittest

It will be available in 7.2.0.

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

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