WebDAV support for mailbox.com
Hello,
I have an account at mailbox.org which provides CalDav, CardDAV, and WebDAV. I entered my account details into the settings window and my account got added successfully. CalDAV and CardDAV worked immediately, however WebDAV files did not. I used a custom server address that mailbox.org documentation provided: davs://dav.mailbox.org/servlet/webdav.infostore/
. It successfully authenticated however it came at me with a 404 error when trying to open it in nautilus.
I traced dbus calls via bustle and it turns out it appended remote.php/webdav
at the end of the server address I manually specified, which seems to be a ownCloud/NextCloud thing as far as I can tell. The mailbox.org servers appear to run Open-Xchange and isn't compatible with that.
I know WebDAV files has no .well-known
address so discovery is a bit trickier, I suggest avoiding magic detection when a custom server address is present.
Furthermore I believe the /servlet/webdav.infostore/
path is shared by all Open-Xchange servers so it could be added as a path in magic detection.
I ended up copying the traced dbus request, removed the remote.php/webdav
bit and added it manually to get around this, which made it work.
mailbox.org doc: https://kb.mailbox.org/en/private/drive-article/webdav-for-linux/