Bug 135424 - FILESAFE XLSX The file in the package for the chart has no stable filename
Summary: FILESAFE XLSX The file in the package for the chart has no stable filename
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-08-03 23:01 UTC by Regina Henschel
Modified: 2022-10-07 12:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet with chart to test saving (21.43 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-08-03 23:01 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-08-03 23:01:10 UTC
Created attachment 163914 [details]
Spreadsheet with chart to test saving

Open attached document.
Save it in xlsx-format with new name.
Save it a second time with new name.
Open the packages and find the folder /xl/charts.
In one case you will see a file "chart1.xml" in the other case a file "chart2.xml".

So the name depends on whether the file had been saved before. Such behavior hinders unit tests and evaluation of the file by programs.

The reason of this wrong behavior has been discussed in https://lists.freedesktop.org/archives/libreoffice/2020-July/085613.html
Comment 2 Regina Henschel 2020-08-04 13:50:45 UTC
(In reply to Xisco Faulí from comment #1)
> I believe the same happens with these 2 occurrences ...

Yes. That is a result of this bug. But "chart1" and "chart2" should not have been used in that test. Chart2ExportTest has a special version of parseExport, which uses always the first chart in folder 'charts', if called with '/charts/chart', see the other tests in that Chart2ExportTest. This workaround is implemented in local method 'findChartFile'.
Comment 3 QA Administrators 2022-10-07 03:37:55 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2022-10-07 12:54:05 UTC
The problem still exists in Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c3b5eea4304ad6815b491f549fce008a9630c213
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded