Bug 141947 - Webdav: the operation on <path> was started with an invalid parameter
Summary: Webdav: the operation on <path> was started with an invalid parameter
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.1.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-28 10:59 UTC by Petr Michálek
Modified: 2021-04-29 13:17 UTC (History)
0 users

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 Petr Michálek 2021-04-28 10:59:32 UTC
Description:
When davfs2 (local mounted file) claims wrong permission (rw), but real permission (on server) is read-only, LibreOffice fails to open file (read-only) like other programs.

LibreOffice fails to open file with message: "The operation on <path> was started with an invalid parameter".

Steps to Reproduce:
1. mount http://.../webdav /home/someuser/mountdir davfs user,noauto,uid=someuser,file_mode=600,dir_mode=700,rw 

2. Open LibreOffice file (*.ods, *.odt, e.g.) with read-only permisson on webdav server.

Actual Results:
Message: The operation on <path> was started with an invalid parameter.

Expected Results:
Open file (read-only) like other programs.


Reproducible: Always


User Profile Reset: No



Additional Info:
Workaround A: Manually change permission on mounted file to read-only. Davfs2 doesn't change file permission on webdav server.
Workaround B: remove mount parameter file_mode.
Comment 1 Harshita Nag 2021-04-28 14:31:02 UTC
Hello Petr Michálek,
    Can you see if bug 60381 is similar to yours?
Comment 2 Harshita Nag 2021-04-28 14:32:48 UTC
(In reply to Harshita Nag from comment #1)
> Hello Petr Michálek,
>     Can you see if bug 60381 is similar to yours?

   Later bugs are generally marked as duplicates of earlier bugs.
Comment 3 Julien Nabet 2021-04-28 14:40:45 UTC
(In reply to Harshita Nag from comment #1)
> Hello Petr Michálek,
>     Can you see if bug 60381 is similar to yours?

Perhaps similar to tdf#60381 but tdf#60381 concerned Windows and the patch to fix this was Windows specific so this one can't be a dup.
Comment 4 Petr Michálek 2021-04-28 15:01:06 UTC
I'm not sure, that bugs are similar. In my opinion problem is related to file permissions. LO trys open file in RW mode and it fails. It would by nice to try open the file in RO mode instead of end with ugly message.

In this case some users never find out real reason of error and LibreOffice looks like buggy software.
Comment 5 Harshita Nag 2021-04-29 13:17:01 UTC Comment hidden (obsolete)