Using WebDav in LibreOffice on Linux Mint

I have a WebDav server that I want to access my LibreOffice files from. I have found two ways to do this and neither perform to expectations:

  1. Mount the WebDav drive using fstab in Unix. This seems to work for all other applications except for LibeOffice. I can find the files the first time I want to open them. However, if I edit them and save the results. The file inconveniently seems to disappear from LibreOffice. Even if I go to the file system and open the file with a right click I get an error message from LibreOffice telling me the file does not exist.

  2. Open.save the files using the remote file access capability within LibreOffice. This works so far as it goes. I can open the file the first time, edit, save, and reopen the file. However, as far as I can tell the system does not actually save the edited file as a single object. Rather it is saved as an archive that does not seem to have the actual embedded in it. I presume the system reconstructs the file every time it opens it again. However, now I can’t gain access to the file for other operations outside of LibreOffice.

If you have read this far, thanks for bearing with me. Any thoughts? Is there something I can do in fstab to make the files persist through a LibreOffice session?

Thanks,
Fred

:thinking: ?

would help to have more details on versions, file types, sizes, etc …
This is the guide - How to use the Ask site? - #3 by Hrbrgr

a third option : Connecting to WebDAV server using Gnome Nautilus

Here some…
It seems that it is impossible to create an instance of WebDAVContent service at least through a macro in LibreOffice (com.sun.star.ucb.WebDAVDocumentContent nor com.sun.star.ucb.Content). The programming language you use with macros does not affect this in any way. I don’t know if this depends on Apache/Open/LibreOffice.org or Oracle or what. If this is a decision done by Oracle it’s quite clear that this has been done by bypassing use of Content service within JRE/JDK level. Now that you can’t create a Content object an instance of the WebDAVContentProvider service, that can be created, also is useless. :thinking:

EDIT:
If this is a JRE/JDK dependent limitation, you can try to Instal the Microsoft Build of OpenJDK Download the Microsoft Build of OpenJDK | Microsoft Learn to replace JRE/JDK package, and see what happens… Another possible solution is to create a macro that saves your document and then uses a script to copy the file (created/edited/and so on) into your network drive and that’s it. If you have a button on LibreOffice toolbar, which runs the macro, you need just one click for transferring the file into your network drive. While researching this, I made an additional observation that you can create an instance of the WebDAVFolderContent service, which is useless because you cant give any content to it (com.sun.star.ucb.WebDAVDocumentContent). This refers somehow to your finding: “…as far as I can tell the system does not actually save the edited file as a single object. Rather it is saved as an archive that does not seem to havethe actual embedded in it.”

Sorry for the lack of detail. I am using Office version 7.3.7.2 and Linux Mint 21.03 cinnamon 6.0.4. The smae issue occurs in all elements of office (calc, writer, & impress).
However, I had not noticed the Gnome server option in the file menu. That does work, files can be opened and saved in folders from the server.
Thanks for the tip.
Fred