Bug 166645 - LibreOffice misdetects the actual file-type 'html' for a file with xls extension
Summary: LibreOffice misdetects the actual file-type 'html' for a file with xls extension
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-19 13:39 UTC by Vovan
Modified: 2025-05-20 07:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File for reproducing (154.06 KB, application/vnd.ms-excel)
2025-05-19 13:40 UTC, Vovan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vovan 2025-05-19 13:39:05 UTC
Description:
There xls file, that looks empty when opening. It could be uploaded and open in Google Drive though.

Steps to Reproduce:
1. Just open attached file


Actual Results:
Looks like empty table

Expected Results:
Data is present


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19044); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_IL); UI: en-US
Calc: CL threaded
Comment 1 Vovan 2025-05-19 13:40:17 UTC
Created attachment 200867 [details]
File for reproducing
Comment 2 m_a_riosv 2025-05-19 13:45:12 UTC
Excel shows the file is broken, but it is able to repair it.
Comment 3 Mike Kaganski 2025-05-19 13:48:54 UTC
This is not an XLS. It is an HTML, named incorrectly.

Looks like LibreOffice somehow misdetects its type. If you open it by explicitly selecting the "HTML Document (Calc)" file type in the file picker dialog, it opens correctly.

Setting to NEW, because the detection code should be improved to allow automatic detection (the file type seems obvious from the <html> tag).