I believe I may have found a potential bug with the Keeweb App for NextCloud, and I’m wondering if someone here would be willing to test and confirm this for me so I can decide whether to file a bug report on Github or simply abandon using the app altogether and look for alternatives.
I appears that whenever the KeePass database file (.kdbx) is written to from an external source (such as the KeePass desktop application or even a mobile phone app such as Keepass2Android), the database file that is stored on my NextCloud server looses its custom mime detection settings (as defined in …/config/mimetypealiases.json). This causes the icon to change from a gear to a blank one and then clicking on the file no longer opens the database within the Keeweb app but rather downloads it to the local computer. However, this problem doesn’t present itself if I make changes from within the Keeweb app.
I’ve posted some images below to show what the icons look like when the problem appears vs. not.
THE TEMP SOLUTION
Currently, the only way to get around the above problem is to manually run “sudo -u www-data /php path/to/occ files:scan --all” after making a change to the database file.
This is what the file icon looks like after it’s been written to from an external source.
This is what it should look like (i.e., after running sudo -u www-data /path/to/php occ files:scan --all)
MY NEXTCLOUD ENVIRONMENT
Nextcloud v16.0.5 / Update Chanel: Stable
Keeweb App v0.5.1
Server: Debian GNU/Linux 10 (buster)
Web Server: Nginx v1.17.4
PHP Version: 7.3.9-1+0~20190902.44+debian10~1.gbpf8534c
I would appreciate it very much if someone here could test on their system and let me know if they see the same behavior, thanks.