[GH-ISSUE #908] Import (1pif) into organization broken #648

Closed
opened 2026-03-03 02:01:41 +03:00 by kerem · 16 comments
Owner

Originally created by @paradeiser on GitHub (Mar 15, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/908

Since the latest update to 2.13.1 Bitwarden crashes when trying to import a .1pif file.

  • Bitwarden_rs version: 1.14-402c1cd0
  • Install method: Docker on Synology

Steps to reproduce

When using the Import page in the web UI, I select .1pif and upload the file.
After a few seconds bitwarden reloads with the login page, stating an unexpected failiure and I have to relogin.

Before the update I frequently used this option without issues.

Is it just me?
best regards

Originally created by @paradeiser on GitHub (Mar 15, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/908 Since the latest update to 2.13.1 Bitwarden crashes when trying to import a .1pif file. * Bitwarden_rs version: 1.14-402c1cd0 * Install method: Docker on Synology ### Steps to reproduce When using the Import page in the web UI, I select .1pif and upload the file. After a few seconds bitwarden reloads with the login page, stating an unexpected failiure and I have to relogin. Before the update I frequently used this option without issues. Is it just me? best regards
kerem closed this issue 2026-03-03 02:01:41 +03:00
Author
Owner

@jjlin commented on GitHub (Mar 16, 2020):

It would help if you could try your import on vault.bitwarden.com to determine whether the issue originates upstream.

<!-- gh-comment-id:599338575 --> @jjlin commented on GitHub (Mar 16, 2020): It would help if you could try your import on vault.bitwarden.com to determine whether the issue originates upstream.
Author
Owner

@paradeiser commented on GitHub (Mar 16, 2020):

this is bitwarden_rs for selfhosted instances. so I dont have access to vault.bitwarden.com

<!-- gh-comment-id:599529879 --> @paradeiser commented on GitHub (Mar 16, 2020): this is bitwarden_rs for selfhosted instances. so I dont have access to vault.bitwarden.com
Author
Owner

@jjlin commented on GitHub (Mar 16, 2020):

Most bitwarden_rs users don't use 1Password, so if you're interested in making progress on this issue, it would be helpful if you tried your import on vault.bitwarden.com, as the bitwarden_rs web vault is almost identical to the upstream web vault, and I don't know of any reason 1Password imports would be broken on bitwarden_rs specifically. If your issue also happens on the upstream vault, then an issue should be raised there instead.

<!-- gh-comment-id:599673242 --> @jjlin commented on GitHub (Mar 16, 2020): Most bitwarden_rs users don't use 1Password, so if you're interested in making progress on this issue, it would be helpful if you tried your import on vault.bitwarden.com, as the bitwarden_rs web vault is almost identical to the upstream web vault, and I don't know of any reason 1Password imports would be broken on bitwarden_rs specifically. If your issue also happens on the upstream vault, then an issue should be raised there instead.
Author
Owner

@paradeiser commented on GitHub (Mar 16, 2020):

I tried to trace it down:

  1. I cleared the docker and used the latest release to rebuild
  2. Import works in vault.bitwarden.com AND bitwarden_rs when importing to "my vault"
  3. Import works in vault.bitwarden.com when importing into an organization
  4. Import FAILS in bitwarden_rs when importing into an organization!

hope that helps to trace down the bug.
best regards

<!-- gh-comment-id:599705366 --> @paradeiser commented on GitHub (Mar 16, 2020): I tried to trace it down: 1. I cleared the docker and used the latest release to rebuild 2. Import works in vault.bitwarden.com AND bitwarden_rs when importing to "my vault" 3. Import works in vault.bitwarden.com when importing into an organization 4. Import FAILS in bitwarden_rs when importing into an organization! hope that helps to trace down the bug. best regards
Author
Owner

@BlackDex commented on GitHub (Mar 18, 2020):

@paradeiser are you able to create a test export for us?
I don't have 1Password, and i think most of developers here do not have that, since they use bitwarden ;).

Also, i noticed at the official documentation that there are two different versions/ways to export/import it into bitwarden: https://help.bitwarden.com/article/import-from-1password/

But in any case, an example export would be cool to have so that we can test it.

<!-- gh-comment-id:600539404 --> @BlackDex commented on GitHub (Mar 18, 2020): @paradeiser are you able to create a test export for us? I don't have 1Password, and i think most of developers here do not have that, since they use bitwarden ;). Also, i noticed at the official documentation that there are two different versions/ways to export/import it into bitwarden: https://help.bitwarden.com/article/import-from-1password/ But in any case, an example export would be cool to have so that we can test it.
Author
Owner

@paradeiser commented on GitHub (Mar 18, 2020):

sure, here you go:
1Password_TestExportFile.1pif.zip
(zipped coz otherwise not supported to upload here)

<!-- gh-comment-id:600564628 --> @paradeiser commented on GitHub (Mar 18, 2020): sure, here you go: [1Password_TestExportFile.1pif.zip](https://github.com/dani-garcia/bitwarden_rs/files/4348638/1Password_TestExportFile.1pif.zip) (zipped coz otherwise not supported to upload here)
Author
Owner

@BlackDex commented on GitHub (Mar 18, 2020):

Great! Thx. Lets see what we can find.

<!-- gh-comment-id:600567331 --> @BlackDex commented on GitHub (Mar 18, 2020): Great! Thx. Lets see what we can find.
Author
Owner

@kidfrostbite commented on GitHub (Mar 18, 2020):

Fwiw I'm having the same issue and can supply more info and logs if needed. The import also fails for me with json data. I even tried a most basic test of creating a new org, making one test entry in the org's vault, exporting that as bitwarden .json and the same failure occurs. Relevant log entries are:

2020-03-17 18:50:19][auth][ERROR] Unauthorized Error: The current user isn’t member of the organization
[2020-03-17 18:50:19][response][INFO] POST /api/ciphers/import-organization?<query…> (post_org_import) => 401 Unauthorized

I've also verified that everything works as expected on vault.bitwarden.com.

<!-- gh-comment-id:600729837 --> @kidfrostbite commented on GitHub (Mar 18, 2020): Fwiw I'm having the same issue and can supply more info and logs if needed. The import also fails for me with json data. I even tried a most basic test of creating a new org, making one test entry in the org's vault, exporting that as bitwarden .json and the same failure occurs. Relevant log entries are: 2020-03-17 18:50:19][auth][ERROR] Unauthorized Error: The current user isn’t member of the organization [2020-03-17 18:50:19][response][INFO] POST /api/ciphers/import-organization?<query…> (post_org_import) => 401 Unauthorized I've also verified that everything works as expected on vault.bitwarden.com.
Author
Owner

@BlackDex commented on GitHub (Mar 18, 2020):

I can verify this also.
Now to find out why.

<!-- gh-comment-id:600772467 --> @BlackDex commented on GitHub (Mar 18, 2020): I can verify this also. Now to find out why.
Author
Owner

@karrots commented on GitHub (Mar 19, 2020):

Seeing this same issue with a KeePass XML import. It has a fair amount of folders which would be imported as collections. A few of the collections already exist.

<!-- gh-comment-id:601333011 --> @karrots commented on GitHub (Mar 19, 2020): Seeing this same issue with a KeePass XML import. It has a fair amount of folders which would be imported as collections. A few of the collections already exist.
Author
Owner

@BlackDex commented on GitHub (Mar 19, 2020):

@karrots, this is with all imports in to the organization. Not specifically linked to a specific kind of import

<!-- gh-comment-id:601347357 --> @BlackDex commented on GitHub (Mar 19, 2020): @karrots, this is with all imports in to the organization. Not specifically linked to a specific kind of import
Author
Owner

@karrots commented on GitHub (Mar 19, 2020):

ok cool. Is there a build of the dockers that follows master? I'd love to test this fix.

<!-- gh-comment-id:601358989 --> @karrots commented on GitHub (Mar 19, 2020): ok cool. Is there a build of the dockers that follows master? I'd love to test this fix.
Author
Owner

@BlackDex commented on GitHub (Mar 19, 2020):

The bitwardenrs/server:latest is the one to look for. It does take a while for them to build, so we all have to be a bit patient unfortunately. The fix will be in the version with this hash part ff19fb.

<!-- gh-comment-id:601361515 --> @BlackDex commented on GitHub (Mar 19, 2020): The bitwardenrs/server:latest is the one to look for. It does take a while for them to build, so we all have to be a bit patient unfortunately. The fix will be in the version with this hash part ff19fb.
Author
Owner

@karrots commented on GitHub (Mar 19, 2020):

This commit fixed the problem for me.

<!-- gh-comment-id:601465341 --> @karrots commented on GitHub (Mar 19, 2020): This commit fixed the problem for me.
Author
Owner

@kidfrostbite commented on GitHub (Mar 20, 2020):

Fixed for me as well.

<!-- gh-comment-id:601910590 --> @kidfrostbite commented on GitHub (Mar 20, 2020): Fixed for me as well.
Author
Owner

@dani-garcia commented on GitHub (Mar 21, 2020):

Great! The latest release 1.14.1 contains this fix, it'll take some time to build the docker images still.

<!-- gh-comment-id:602084310 --> @dani-garcia commented on GitHub (Mar 21, 2020): Great! The latest release 1.14.1 contains this fix, it'll take some time to build the docker images still.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#648
No description provided.