Bug 140098

Summary: FILESAVE XLSX Excel detects invalid contents in autofilter of particular document
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: CalcAssignee: Balázs Varga <varga.balazs3>
Status: VERIFIED FIXED    
Severity: normal CC: 79045_79045, himajin100000, nemeth, varga.balazs3
Priority: medium Keywords: filter:xlsx
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=133492
Whiteboard: target:7.2.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104839, 123807    
Attachments: attachment 169386 saved as XLSX
Screenshot of the exported document in Excel 2013

Description NISZ LibreOffice Team 2021-02-02 16:24:39 UTC
Created attachment 169398 [details]
attachment 169386 [details] saved as XLSX

Upon saving attachment 169386 [details] from bug #133492 to XLSX format and opening it in Excel, it detects invalid contents in the autofilter.

Steps to reproduce:
    1. Open attachment 169386 [details]
    2. Save as XLSX
    3. Open it in Excel

Actual results:
Excel says it found invalid contents in the autofilter, should it try to fix it.

Expected results:
No such error.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 318d384c596c1593667d6c936f55bf6ebd0c5db6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-GB
Calc: CL

Also happens in older versions: 7.0, 6.0, 5.0, 4.0 -> likely not a regression
Comment 1 NISZ LibreOffice Team 2021-02-02 16:25:01 UTC
Created attachment 169399 [details]
Screenshot of the exported document in Excel 2013
Comment 2 Roman Kuznetsov 2021-02-03 13:13:44 UTC
confirm in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6ab1feb2604d2620435a2aecbafff1d8c21255e9
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded

and in

Версия: 5.2.7.2
ID сборки: 2b7f1e640c46ceb28adf43ee075a6e8b8439ed10
Потоков ЦП: 4; Версия ОС: Windows 6.2; Отрисовка ИП: по умолчанию; 
Локаль: ru-RU (ru_RU); Calc: group
Comment 3 Commit Notification 2021-02-16 08:22:29 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/66da7cd0a52532d6e73eb2cde78ca369917ab01a

tdf#140098 sc ooxml: fix export of blank filter in non empty filters

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Roman Kuznetsov 2021-02-17 11:17:03 UTC
verified in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2c8ffa41ec8e1ab2af95d5e033a445c17d29cf5a
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

Thanks for fix!