Bug 164332 - Error saving the document, when tmp-files are deleted
Summary: Error saving the document, when tmp-files are deleted
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Save
  Show dependency treegraph
 
Reported: 2024-12-15 17:04 UTC by achim
Modified: 2025-06-17 13:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot (72.64 KB, image/png)
2025-01-02 10:15 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description achim 2024-12-15 17:04:24 UTC
Description:
When the temporary directory (and/or its files) in /tmp are gone for whatever reason, the document can no longer be saved. Libreoffice always complains with error messages, each in its own window.


Steps to Reproduce:
1. open and edit some.odt
2. rm -rf /tmp/luPIDrandom1.tmp
3. trying to save changed document will complain with errors

Actual Results:
 +-----------------------------------------------+
 | Fehler beim Speichern des Dokuments some.odt: |
 | Kein Zugriff auf Objekt.                      |
 | Aufgrund fehlender Benutzerrechte kann auf    |
 | das Objekt nicht zugegriffen werden.          |
 +-----------------------------------------------+
and
 +---------------------------------------------------------+
 | Fehler beim Speichern des Dokuments some.odt:           |
 | /tmp/luPIDrandom1.tmp/luPIDrandom2.tmp existiert nicht. |
 +---------------------------------------------------------+

Expected Results:
Libreoffice should save the document as it is already in memory.
If in doubt, it should offer the save-file dialog to change the filename.


Reproducible: Always


User Profile Reset: No

Additional Info:
As workaround, experienced users simply do following (using example as described before):
1. mkdir /tmp/luPIDrandom1.tmp/
2. touch /tmp/luPIDrandom1.tmp/luPIDrandom2.tmp
3. use save in libreoffice
;-)

This also proofs, that there is no reason for libreoffice to bother the user with error messages, because the situation can be handled.
Also, the error messages are technically wrong or incomplete which make it hard to get used to the reason.

May be this bug is similar to or even the same as described in #160484
Comment 1 BogdanB 2025-01-02 10:14:28 UTC
Confirm with
Version: 25.2.0.1 (X86_64) / LibreOffice Community
Build ID: ddb2a7ea3a8857aae619555f1a8743e430e146c9
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 2 BogdanB 2025-01-02 10:15:46 UTC
Created attachment 198350 [details]
screenshot

Screenshot showing the temporar file on the left, that is created after the temporrary files have been removed from that folder, and on the right the error I get.
Comment 3 BogdanB 2025-01-02 10:17:42 UTC
I have to mentioned that first time, after I removed the temporary file, it was created again by save, and no error. The second try, I get the error.