Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save to DavX5 with WebDAV protocol #1160

Closed
Offerel opened this issue Nov 16, 2021 · 5 comments
Closed

Can't save to DavX5 with WebDAV protocol #1160

Offerel opened this issue Nov 16, 2021 · 5 comments

Comments

@Offerel
Copy link

Offerel commented Nov 16, 2021

Describe the bug
I opened a kdbx file with standard files application to KeepassDX. The file is from a WebDAV share and the WebDAV share is mounted via DavX5. If I try to save a change, i get the message that the database can't be saved. I don't know if this is a bug from KeepassDX or DavX5.

To Reproduce

  1. Install DavX5
  2. Mount the WebDAV file share from within DavX5
  3. Open KeepassDX
  4. Open a kdbx file via standard files application and choose file from WebDAV share
  5. Make some change to the database
  6. Try to save the change
  7. Save will fail

Expected behavior
Save is successful

KeePass Database

  • Location: [Remote via DavX5]
  • Size: [400kb]
  • Contains attachment: [Yes]

KeePassDX (please complete the following information):

  • Version: [actual version from f-droid]

Android (please complete the following information):

  • Device: [GalaxyS20FE]
  • Version: [11]
@Offerel Offerel added the bug label Nov 16, 2021
@J-Jamet
Copy link
Member

J-Jamet commented Nov 20, 2021

I don't know DavX5, but the only thing I can do at the moment is to add the behavior of this application to the wiki.
After that when I will make the file manager application which will integrate WebDAV, it will be easier to use. #840

@J-Jamet J-Jamet added the wiki label Nov 20, 2021
@J-Jamet J-Jamet changed the title Can't save to WebDAV SAF Can't save to DavX5 with WebDAV protocol Nov 20, 2021
@Offerel
Copy link
Author

Offerel commented Nov 20, 2021

With other applications, using SAF, i can save without problems to this WebDAV share. For example andOTP saves backups directly to this mount.

If i understand this right, DavX5 ( Google or F-Droid ), mounts a DAV fileshare directly in to the standard built-in Android files ap. Its up to the app to read and/or write to such a folder. According to https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync it should be possible to write to content://com.android.externalstorage.documents/. But maybe im wrong. Hopefully, you find a way to support writing a db to a webdav, either via your filemanager or SAF.

@rfc2822
Copy link

rfc2822 commented Nov 20, 2021

DAVx5 uses directly streamed WebDAV without a file buffer. This allows to directly stream files of any size. However, only the r and w modes are supported; rw (random access) is not supported because it's not defined in WebDAV (there are extensions, but must servers don't have them and they can't be detected automatically).

However, for just saving a backup, w should be enough (or r for restoring), so this should worked with WebDAV. So I suggest to use w or r, which should be enough in your case and allow direct WebDAV backups.

@J-Jamet J-Jamet added out of scope and removed bug labels Jan 18, 2022
@J-Jamet
Copy link
Member

J-Jamet commented May 10, 2022

rw is no longer used by default

@J-Jamet J-Jamet closed this as completed May 10, 2022
@Offerel
Copy link
Author

Offerel commented May 11, 2022

Can confirm that this is working fine now. Many thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants