Bug 112783 - PIVOT CHARTS: Save produces invalid file because of invalid cell address
Summary: PIVOT CHARTS: Save produces invalid file because of invalid cell address
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
6.0.0.0.alpha0+
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL: http://docs.oasis-open.org/office/v1....
Whiteboard:
Keywords: filter:odf
Depends on:
Blocks: Pivot-Chart ODF-export-invalid
  Show dependency treegraph
 
Reported: 2017-09-30 17:23 UTC by Regina Henschel
Modified: 2023-12-13 14:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sheet with pivot table and pivot chart (18.96 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-09-30 17:23 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2017-09-30 17:23:52 UTC
Created attachment 136653 [details]
sheet with pivot table and pivot chart

The current solution writes e.g table:cell-range-address="PivotChart" or "chart:label-cell-address="PT@label 0" or chart:values-cell-range-address="PT@data 0". But those are not valid, because they do not fullfil the regex in the schema OpenDocument-v1.2-os-schema.rng

<define name="cellRangeAddress">
		<choice>
			<data type="string">
				<param name="pattern">($?([^\. ']+|'([^']|'')+'))?\.$?[A-Z]+$?[0-9]+(:($?([^\. ']+|'([^']|'')+'))?\.$?[A-Z]+$?[0-9]+)?</param>
			</data>
			<data type="string">
				<param name="pattern">($?([^\. ']+|'([^']|'')+'))?\.$?[0-9]+:($?([^\. ']+|'([^']|'')+'))?\.$?[0-9]+</param>
			</data>
			<data type="string">
				<param name="pattern">($?([^\. ']+|'([^']|'')+'))?\.$?[A-Z]+:($?([^\. ']+|'([^']|'')+'))?\.$?[A-Z]+</param>
			</data>
		</choice>
	</define>

The validator at http://odf-validator.rhcloud.com/ will not find the error, because it only checks "string" but not the pattern.
Comment 1 Buovjaga 2017-11-07 16:03:48 UTC
Let's set to NEW
Comment 2 QA Administrators 2018-11-08 04:07:16 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2020-04-03 13:34:42 UTC
The error still exists in Version: 7.0.0.0.alpha0+ (x64)
Build ID: 6388c578c672690fff662cb04b6a0436cd742f37
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 4 Regina Henschel 2021-12-12 17:41:53 UTC
The error still exists in Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4ac9032163cf55c160145373e7c41741c9c339ca
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


I think, that it is necessary to reconsider how tables inside charts are used. Such principle decision is necessary in bug 82218 too.
Comment 5 QA Administrators 2023-12-13 03:14:01 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2023-12-13 14:28:48 UTC
The link for ODF 1.3. is https://docs.oasis-open.org/office/OpenDocument/v1.3/os/schemas/OpenDocument-v1.3-schema-rng.html

The error still exists in Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded