Bug 163022 - FILEOPEN XLSX: Autofilter state is inconsistent
Summary: FILEOPEN XLSX: Autofilter state is inconsistent
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: XLSX-Autofilter
  Show dependency treegraph
 
Reported: 2024-09-18 06:46 UTC by Regina Henschel
Modified: 2024-09-20 05:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Table without filter buttons (12.64 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-09-18 06:46 UTC, Regina Henschel
Details
Screenshot opening in Excel (71.32 KB, image/png)
2024-09-18 20:47 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-09-18 06:46:24 UTC
Created attachment 196519 [details]
Table without filter buttons

Open attached xlsx file. It has a table, where the filter buttons are disabled.
The table from Excel results in a database range "myData". That is OK.

Save the file to ods, e.g. using "Save a copy".
Open this ods file.
Error: It has Autofilter enabled.

In the opened xlsx file, select the database range "myData". In menu Data look at state of item AutoFilter. It is off. That is OK.
Open the development Tools.
On Object Document show Properties.
Open DatabaseRanges and therein @myData. You see AutoFilter=True. That is wrong.

Error: The UNO property AutoFilter has a different value than the state of item "AutoFilter".

This wrong UNO property results in a wrong value for the attribute table:display-filter-buttons in the saved ods file.

If you select the database range "myData" in the just opened xlsx file and enable AutoFilter and immediately disable AutoFilter, then the UNO property AutoFilter has the correct value False and save to ods is correct.

So this is an error in the import filter of xlsx.
Comment 1 m_a_riosv 2024-09-18 20:44:18 UTC
Reproducible
Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Maybe in relation with tdf#162992
Comment 2 m_a_riosv 2024-09-18 20:47:07 UTC
Created attachment 196532 [details]
Screenshot opening in Excel

Opening in Excel looks as the filter was active, but not showed.