jhass/nextcloud-keeweb

Keeweb not opening read-only databases

hublol opened this issue · 4 comments

Hi,

I am using Nextcloud Hub II (23.0.0) and Keeweb 0.6.8.
Everything is working fine when I try to open a database with read-write access.
But when the database file is read-only, the file is not opening in Keeweb. Instead, I get the download dialog.

Not sure if the problem is coming from Nextcloud or from Keeweb, but I need to grant access to a specific database to other users, and they should absolutely not be allowed to make any changes. Is this possible?

Thanks.

How exactly do you provide the file as "read-only"?

When I share a KDBX file with another Nextcloud user without giving editing permissions, it works fine. The other user can open the file in Keeweb but not sync changes back as this will result with an HTTP 403 error. This can not be avoided since Keeweb does not have a "read only" mode - but at least other users can not change anything by accident.

The .kdbx file is stored on a file system mounted as external storage.
I can make it read-only in various ways:

  • directly changing the permissions on the file system.
  • mounting the external storage in Nextcloud with the read-only flag.
    Both lead to the same results, ie. the file is no longer opened in Keeweb (same file is opened correctly if read-write is allowed).

In this case I believe it is Nextcloud which decides that read only files can not be opened using the app anyway. However, I don't know how to avoid this.

ok, thanks.