Bug 95323 - FILESAVE: ODF - Chart (with data table) saved as object when saved from .docx
Summary: FILESAVE: ODF - Chart (with data table) saved as object when saved from .docx
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: Other All
: high major
Assignee: Not Assigned
URL:
Whiteboard: interoperability
Keywords: filter:docx, needsDevEval
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2015-10-26 09:16 UTC by Luke
Modified: 2018-12-24 19:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Default Word Chart to illustrate the issue (23.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-10-26 09:16 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2015-10-26 09:16:14 UTC
Created attachment 119957 [details]
Default Word Chart to illustrate the issue

Steps to reproduce:
1.	In Word insert a chart and save as docx
2.	Open file in Writer
3.	Save as the recommended ODF format
4.	Close
5.	Open and save again
6.	Open
Note in step 6 the chart has changed from editable chart to a garbled picture. This is especially insidious because it only shows up after the second save. Both the imported file and the first native ODF file appear OK. Excel/Calc files are not affected by this issue. Also if you keep the chart in .docx, you can save and close multiple times without corrupting the file.
Comment 1 Yousuf Philips (jay) (retired) 2015-10-28 12:26:30 UTC
After opening the odt in step 5, the chart is no longer a chart, so ideally that should be the focus of this bug.

Version: 5.1.0.0.alpha1+
Build ID: 9a85743766e8a063d20d5f93ee88758e243397f4
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-10-23_00:56:39
Locale: en-US (en_US.UTF-8)

LO doesnt show the chart in the docx before 4.2 and with 4.2, the chart is an object which isnt editable.
Comment 2 Luke 2015-10-30 12:38:29 UTC
JP,
Yes, it's an object when opened in step 5, but not apparent to the user as the document is still rendered correctly. By step 6, the picture of the chart has been lost and the document is now damaged. Ideally, we fix this so new DOCX charts come in as charts like XLSX->ODS, and existing ODF with these objects continue to display the picture of the chart. 

Since ODF documents are being corrupted here, shouldn't the priority be bumped?
Comment 3 Yousuf Philips (jay) (retired) 2015-10-30 22:20:17 UTC
(In reply to Luke from comment #2)
> Yes, it's an object when opened in step 5, but not apparent to the user as
> the document is still rendered correctly. By step 6, the picture of the
> chart has been lost and the document is now damaged. Ideally, we fix this so
> new DOCX charts come in as charts like XLSX->ODS, and existing ODF with
> these objects continue to display the picture of the chart. 

Yes ideally both problems should be looked into when a dev looks into this.

> Since ODF documents are being corrupted here, shouldn't the priority be
> bumped?

Looking in the odt files in steps 3 and 6, after step 3 you have these files missing after step 3

/Object 1/content.xml
/Object 1/meta.xml
/Object 1/styles.xml
/ObjectReplacements/Object 1

These file must relate to the chart which has gone missing. Priority increased.
Comment 4 Luke 2015-12-09 08:22:39 UTC Comment hidden (obsolete)
Comment 5 Robinson Tryon (qubit) 2015-12-14 06:11:28 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-01-03 19:45:57 UTC Comment hidden (obsolete)
Comment 7 Luke 2017-01-04 00:58:41 UTC
Native ODF still corrupted on 2nd save. 
Still an issue in Version: 5.4.0.0.alpha0+ (x64)
Build ID: bf80bbb7b75febc2769d6b64e6981224982f8fe2
Comment 8 QA Administrators 2018-01-04 03:35:09 UTC Comment hidden (obsolete)
Comment 9 Timur 2018-01-05 10:22:15 UTC Comment hidden (obsolete)
Comment 10 Timur 2018-01-08 08:32:26 UTC
Bug started in 4.2.0, because chart was not imported before. So I remove "bibisectRequest, regression".  
Repro in 6.1+.
Note in step 5 that chart is not editable after first save so title is proper "ODF - Chart saved as object when saved from .docx." I added (with data table).