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

            Bug ID: 170474
           Summary: FILEOPEN, FILESAVE, LINUX
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: [email protected]
          Reporter: [email protected]

Fileopen and Filesave completely break if the temporary folder is accidentally
deleted while Libreoffice is running.  This applies to Libreoffice Writer and
Libreoffice Impress.

Libreoffice running on Fedora 39? KDE plasma
Context - for some reason, my /tmp folder got wiped sometime, when libreoffice
was running.  I had 2 spreadsheets and 1 presentation open.

I created a new presentation, and found after creating 5 slides of work that I
couldn't save it.  I just got an error dialog saying he file could not be
created.  Libreoffice was then incapable of opening or saving any file, in
either PPTX or ODP formats.

Looking in /tmp there was no 'lu8299____.tmp' folder, nor could I recreate it
because I didn't know what the last few characters should be.  There was a
'PIPE1000___' file/fifo.

My guess is that because the temporary folder didn't exist, when Libreoffice
tried to save a backup file or overwrite an existing backup file, the filewrite
call failed with an error because the directory didn't exist.

To test for this error, close all libreoffice, reopen libreoffice, then rename
the temporary folder 'lu[proc_num][some random chars].tmp'  It then won't save
or open any ODP files.  (Rename the temporary folder back, and all should work
again.)

This bug occurs rarely, but has disastrous consequences of leaving your user
completely unable to save their work when the bug does occur.

To fix, would it work to check if the temporary folder exists whenever
saving/opening a file, recreate the temporary folder if it doesn't exist, then
continue to save/open the file as normal.  

I have only experience programming desktop applications in python, and embedded
programs in C++ so can't actually help with creating any patch for this bug
myself.

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

Reply via email to