Bug 172020 - FILEOPEN Long file names cause lock error
Summary: FILEOPEN Long file names cause lock error
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Name
  Show dependency treegraph
 
Reported: 2026-05-08 06:56 UTC by RealName GoesHere
Modified: 2026-05-11 08:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RealName GoesHere 2026-05-08 06:56:11 UTC
If filename is so long that when chromium downloaded it, filename was truncated, libreoffice can't open file normally:

Steps to reproduce:

0) Version: Version: 26.2.3.2 (X86_64)
Build ID: 70e089b17412e4cb7773e41413306b17a2328c34
CPU threads: 24; OS: Linux 7.0; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
(running on btrfs)
1) Create a normal "empty.odt" file, quite writer
2) Rename file to

AABBAABCDEFGHIZZFFAAWWWWQQEERRAAABBABBCCDDAAFFAAGGGHHAABBCCAACCDDEEFFGGGHHAABBCCDDEEFFGGHHAABBCCDDAABBCCDDEEFFGGHHIIJJIIHHGGFFEEDDCCBBAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQAABBCCDDEEFFGGHHAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZAABBCCDDEE.odt

(250 symbols)

3) Open file again in libreoffice. It'll complain

"The lock file could not be created for exclusive access by LibreOffice, due to missing permission to create a lock file on that file location or lack of free disk space."

If file is renamed back, it works fine.

Looks like it's because adding`.~lock.#` makes filename too long to work.
Comment 1 BogdanB 2026-05-08 08:20:19 UTC Comment hidden (obsolete)
Comment 2 BogdanB 2026-05-08 19:26:37 UTC Comment hidden (obsolete)
Comment 3 BogdanB 2026-05-08 19:29:36 UTC
I confirm with
Version: 26.2.3.2 (X86_64)
Build ID: 70e089b17412e4cb7773e41413306b17a2328c34
CPU threads: 16; OS: Linux 6.17; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

The steps are correct, but renaiming the file is outside LibreOffice, I tried before with saving with a long name.