https://bugs.documentfoundation.org/show_bug.cgi?id=166721

            Bug ID: 166721
           Summary: FILESAVE ODS can't be saved again after editing, if a
                    hash-sign (U+0023) is in CIFS/Samba pathname
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 200953
  --> https://bugs.documentfoundation.org/attachment.cgi?id=200953&action=edit
Screenshot: the lockfile which only works on path without '#' sign

When storing or opening any .odt file at a folder structure which itself
contains a '#' (hash / number / pound) sign, all is well - until one tries to
edit and save:
After changing any odt spreadsheet, while trying to save the sheet again, you
get the error message (German here):

"Fehler beim Speichern des Dokuments Panelmontage_und_Belegung4:
Kein Zugriff auf Objekt.
Aufgrund fehlender Benutzerrechte kann
auf das Objekt nicht zugegriffen werden."

The obvious reason is a problem with the lock-file
".~lock.Panelmontage_und_Belegung5.ods#".


Reproduce:
Create a file share on a CIFS/SMB/Samba server and assign requires read+write
rights.
Create two paths with same rights.

1st path shall contain a '#' sign in the path, lets say:
//fileserver.local/shared/#twohash#

2nd path shall not contain a '#' anywhere. let's say:
//fileserver.local/shared/@nohash@


Create a spread sheet with libreoffice calc, add some number, save as
"wontwork.ods" at 1st path.
Then edit some cell, press ^S (save) once again. BAM! Error message, nothing
got saved. You can still "save as ..." and assign a different basename, say
"wontwork2.ods". Repeat edit, try save again - BAM! ...
You will note, that never a file ".~lock.wontwork.ods#" occurs in
.../#twohash#/ folder.

counter verification:
Do the same steps on path number 2, the one with "/@nohash@/" in name. Name the
file "willwork.ods" here. You can edit and save as often as you can.
You will note the file ".~lock.willwork.ods#" in .../@nohash@/.

3rd verification:
rename .../@nohash@/... path to .../#hashy#/... and repeat the willwork.ods
verification: BAM! Error message.

Note: 
This problem occours not only with libreoffice calc spreadsheets, but also with
writer and normal letters.

seen with

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

CIFS Server is recent version on Ubuntu 2204 LTS.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to