Bug 91424 - handling of relative references in OOXML range names
Summary: handling of relative references in OOXML range names
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
Keywords: filter:xlsx
Depends on:
Blocks: XLSX Cell-Reference Calc-large-spreadsheets
  Show dependency treegraph
Reported: 2015-05-21 08:24 UTC by Markus Mohrhard
Modified: 2024-02-20 03:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

old patch attempt (5.63 KB, patch)
2015-05-21 09:25 UTC, Markus Mohrhard
automated import test for it (9.40 KB, patch)
2015-05-21 09:26 UTC, Markus Mohrhard
Example file extracted from the unit test patch (7.55 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-07-14 09:19 UTC, NISZ LibreOffice Team
The example file in Excel and Calc (88.11 KB, image/png)
2021-07-14 09:52 UTC, NISZ LibreOffice Team

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Mohrhard 2015-05-21 08:24:21 UTC
relative references in range names are not handled correctly as they depend on wrapping references.
Comment 1 Markus Mohrhard 2015-05-21 09:25:50 UTC
Created attachment 115764 [details]
old patch attempt

Was a wrong idea. Just included for completeness.
Comment 2 Markus Mohrhard 2015-05-21 09:26:44 UTC
Created attachment 115765 [details]
automated import test for it

Test is failing even with aforementioned patch.
Comment 3 QA Administrators 2016-09-20 09:42:46 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-12-03 14:38:37 UTC Comment hidden (obsolete)
Comment 5 NISZ LibreOffice Team 2021-07-14 09:19:41 UTC
Created attachment 173552 [details]
Example file extracted from the unit test patch
Comment 6 NISZ LibreOffice Team 2021-07-14 09:52:21 UTC
Created attachment 173554 [details]
The example file in Excel and Calc

Still a problem in:

Version: (x64) / LibreOffice Community
Build ID: 213430e0bdac0786b30a76a68b43d35647e93912
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL Jumbo

You need jumbo sheets enabled since the defined names are in that range:

		<definedName name="Name1">Sheet1!XFD1</definedName>
		<definedName name="Name2">Sheet1!$A$1</definedName>
		<definedName name="Name3">Sheet1!XFD1048576:B2</definedName>

Of these Name2 is an absolute reference and opens correctly.
Name1 and Name3 are relative and the XFD column designations open as a #REF! error.
Comment 7 QA Administrators 2024-02-20 03:12:12 UTC
Dear Markus Mohrhard,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team