strongbox-password-safe / Strongbox

A KeePass/Password Safe Client for iOS and OS X
https://strongboxsafe.com
GNU Affero General Public License v3.0
1.35k stars 102 forks source link

Error importing .kdbx file, iOS16.5.1 (c) on iPhone 14 Pro #714

Closed murraydavis closed 1 year ago

murraydavis commented 1 year ago

I created a Keepass database on Fedora 38 using the KeePassXC 2.7.5 pkg. According to the maintainer's FAQ, "KeePassXC currently uses the KeePass 2.x (.kdbx) password database formats KDBX 3.1 and KDBX 4 as its native file formats. KDBX 2 files can be opened, but will be upgraded to a newer format. KeePass 1.x (.kdb) databases can be imported into a .kdbx file, but saving a .kdbx file as .kdb would be lossy, and saving to .kdb is not supported by KeePassXC.". I created a new database with a .kdbx file extension. I was able to import this db into the Window's KeePass app.

I use the MegaSync cloud service and placed my .kdbx file into a folder. I installed Strongbox on my iPhone. Since Strongbox does not support MegaSync, I used MegaSync's file share feature and tried importing the .kdbx file into Strongbox. Attached is the error message I received while importaing. Any suggestions? IMG_1917

strongbox-mark commented 1 year ago

From the screenshot we can see the first few bytes sent to Strongbox by the Mega File sync service are:

<!DOCTYPE html><html xm

which of course isn't a valid KDBX database. It looks like whatever that file service is, isn't sending the actual file, but rather some kind of HTML/XML...

There isn't much we can do here I'm afraid. You could copy the file over some other way and use it, but I assume you want full sync, so this wouldn't be great.

murraydavis commented 1 year ago

Thank you, Mark, for your response. I agree that the file upload issue lies with the Mega Sync service. I uploaded the .kdbx file to Dropbox and then was able to import this db file into Strongbox on my iPhone. So, all is good.