[Libreoffice-bugs] [Bug 144298] New: Save-As: Misleading message if directory is not writable
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 4 20:00:04 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=144298
Bug ID: 144298
Summary: Save-As: Misleading message if directory is not
writable
Product: LibreOffice
Version: 7.3.0.0 alpha0+ Master
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: framework
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jim.avera at gmail.com
If a Save is attempted into a directory which does not have write permission,
the error appears (my guess) to be undetected, or at least not reported up to
the UI.
The result is that the user is shown a confusing error over and over:
"/path/to/readonly-directory/file.ods does not exist".
If the user clicks OK (the only choice), the error box re-appears immediately,
and this repeats several times before the user is able to recover control.
My guess is that the failed save was not detected, and subsequent operations
which try to read or validate the new file name fail with the above message.
At the C level, a file-create call [ open(pathname, O_CREAT|...) ] in this
situation returns -1 and sets ERRNO to 13 ("Permission denied"). But this
error
is not making it to the user.
STEPS TO REPRODUCE:
1. mkdir /tmp/Testdir
2. chmod -w /tmp/Testdir
3. Attempt to save any file from LO into /tmp/Testdir/something
RESULTS: Stuck (for several iterations) at the "does not exist" message
EXPECTED RESULTS: "Permission denied" or similar, once only, allowing the user
to take corrective action.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210904/c5e16186/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list