-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Problems with multiple Keeshare imports in one database #2895
Description
One of my databases will not import correctly with Keeshare, but only while another database is imported.
Expected Behavior
I usually have three databases open in KeepassXC: Home, Work1, and Work2. I want to use Keeshare to create a new database that imports the three databases into top-level groups. Each database should appear in its own top-level group called Home, Work1, and Work2.
Current Behavior
When I import Home first everything shows up as I would expect under the Home group. When I import either Work1 or Work2 next, the contents of the Home group disappears. I know the data is still in the database, because I can open Home directly and see everything.
If I import Work1 or Work2 first, when I import Home, nothing shows up in the Home group. Again I know the data is still there, because I can open Home directly and see everything..
Possible Solution
Home, Work1, and Work2 are normally synchronized with the Nextcloud client, while the new database is not synchronized. Stopping the Nextcloud client and setting up the new database from scratch did not change anything.
Copying all three databases into separate folders on my desktop and creating the new database also in a separate folder does appear to work. Keeping all four databases in one folder results in an endless loop of importing as soon as the second Keeshare import is added to the new database.
For each test I removed all of the entries from Tools > Settings > Keeshare > Imported Certificates. I answered "Always" as each Keeshare import was added. I don't understand why the location of the database on the local file system impacts the import so much. For reference here are the absolute file locations that result in the entries in the Home group disappearing when Work1 or Work2 are imported into their own top-level groups:
/home/myusername/Documents/Home/Keepass/Home.kdbx # Synced in NextCloud
/home/myusername/Documents/Work1/Keepass/Work1.kdbx # Synced in NextCloud
/home/myusername/Documents/Work2/Keepass/Work2.kdbx # Synced in NextCloud
/home/myusername/Documents/Keepass/Passwords.kdbx # Not Synced, Local Only
Steps to Reproduce
See the current behavior. The steps can occur in either order. When another database is setup for import with Keeshare, the data from the Keeshare imported home database will not show up.
Context
I tried using the synchronize option in Keeshare first, but I noticed that my Home database was getting blanked out. I now believe that this happened after I imported Work1, and the Home database appeared to be empty. I have not lost any data since I limited my testing to imports, but I eventually want to get Keeshare synchronization working with all three databases.
Debug Info
KeePassXC - Version 2.4.0
Libraries:
- Qt 5.9.5
- libgcrypt 1.8.1
Operating system: Linux Mint 19.1
CPU architecture: x86_64
Kernel: linux 4.15.0-46-generic
Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare (only unsigned sharing)
- YubiKey