Bug 147005 - [Linux Flatpak] LibreOffice doesn't stop "saving" where it can't write to, then "deletes" the "file" that never existed
Summary: [Linux Flatpak] LibreOffice doesn't stop "saving" where it can't write to, th...
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-26 17:29 UTC by barrett.c5
Modified: 2022-01-26 18:16 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 barrett.c5 2022-01-26 17:29:23 UTC
Description:
Currently LibreOffice flatpak does not provide an error/warning prompt when it is not able to save to a location it does not have access to view flatseal/bubblewrap.

What occurs, is the user is able to use File menu Save as and pick any location (even if LibreOffice flatpak does not have access) to save in the file picker window that appears. Even if you use that file picker to do another save as or open you can see the file that was created along with the .lock file.

However, if the user looks with their own integrated file explorer which is Dolphin for me they will see the files were never actually created. Neither the regular file or .lock.

This makes me curious if this is a bug in:
1) LibreOffice Flatpak
2) Integrated file picker/explorer
3) Bubblewrap/Flatseal
4) Flatpak itself

It is concerning that LibreOffice flatpak "creates" a file that can be seen in the file picker/explorer pop up but not outside of it.


Steps to Reproduce:
1. Create a document in LibreOffice Calc flatpak
2. Write some stuff
3. Click File and Save as in the menu bar. "save" it to a location there is no access via flatseal LibreOffice Calc "thinks" the file is saved there as the file picker suggets
4. Navigate to that location in your file explorer (Dolphin for me).
5. Close LibreOffice Calc flatpak
6. Reopen LibreOffice Calc flatpak
7. The file never existed in LibreOffice Calc apparently
8. Cry because you lost hours of work.

Actual Results:
The file is nowhere to be found.

Expected Results:
LibreOffice would warn the user that they are not able to save to that directory due to lacking permissions in flatseal/bubblewrap.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Operating System: Arch Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.15.16-hardened1-1-hardened (64-bit)
Graphics Platform: X11
Comment 1 Buovjaga 2022-01-26 18:16:40 UTC
Please file it to flathub https://github.com/flathub/org.libreoffice.LibreOffice/issues