Bug 159526 - Always create backup copy problem
Summary: Always create backup copy problem
Status: RESOLVED DUPLICATE of bug 55004
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: Network
  Show dependency treegraph
 
Reported: 2024-02-02 16:18 UTC by mcury
Modified: 2024-03-29 01:28 UTC (History)
3 users (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 mcury 2024-02-02 16:18:02 UTC
Description:
This is a new issue, it wasn't happen with 7.6.4 release.
With the option "Always create a backup copy" enabled, and if the .ods file is in a smb share, I can't save the file.

Error message as per below:

Error saving the document filename:
Error creating object.
Could not create a backup copy.

Copied the file to a local folder to test, and I can save it, the problem only happens if the file is in a smb share.

Noticed that if I mount the share using the mount option "nobrl", it solves the issue.

I tried to change the path to the backup folder to a local folder, the same problem happens.
Also tried to "Place backup in the same folder as document", but the same problem happens.

Found that libreoffice creates a .bak file with 0 bytes during these attempts.

Also:
Tried to launch in Libreoffice in safe mode, didn't help.
Tried to launch using English language (LANG=C libreoffice), but didn't help.


Steps to Reproduce:
1. With the option "Always create a backup copy" enabled
2. Open a .ods file in a SMB share
3. Try to save the file

Actual Results:
Error saving the document filename:
Error creating object.
Could not create a backup copy.

Expected Results:
Expected it to save the file as usual.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Using EndeavourOS OS, system is up to date.
DE: Gnome

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: 420(Build:3)
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
24.2.0-1
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2024-03-08 14:23:17 UTC
Thanks for the report.
If I'm not mistaken, this should be resolved in 24.2.2, thanks to the fix for bug 55004.
Marking as duplicate, but please confirm that it is indeed resolved once you can test 24.2.2.

*** This bug has been marked as a duplicate of bug 55004 ***
Comment 2 ady 2024-03-08 16:53:31 UTC
FWIW, tdf#55004 is not a recent report, whereas tdf#159526 comment 0 says "This is a new issue, it wasn't happen with 7.6.4 release".

So indeed this needs to be re-evaluated with LO 24.2.2.
Comment 3 mcury 2024-03-29 01:28:19 UTC
Tested today with the version:

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
24.2.2-1
Calc: threaded

Everything is working now, I can use the "Always create a backup copy" with no problems.
Thanks for looking at this.