My passwords get quadrupled on import. This happens in at least two situations from the web vault:
import from lastpass
export to bitwarden json → run a personal script to dedup the json → clear vault → re-import
Thought I’d get a code pointer before making an issue, since I don’t even know if the import code is in bitwarden/server (would be my guess) to be sure I’m making an issue in the right repo.
This is expected behaviour, if you are not purging your vault before re-importing.
Please have a look at our Import & Export FAQs and also our guide on importing into an individual vault.
The Github contributions category is meant for people looking to contribute to the codebase. If you have general questions please use the Ask the Bitwarden community category.
I understood. I no longer have the lastpass csv that I used to import. I just tried exporting from lastpass again, and didn’t see duplicates in the csv. Unfortunately, importing that csv did not reproduce the bad BitWarden vault, with the duplicates, that I had before. It’s possible there’s a nondeterministic lastpass bug that duplicates on export, but that would imply I also encountered something like buggy BitWarden UI or sync behavior when I performed this sequence of actions (elaborated description from original post) earlier today:
export to bitwarden json → run a personal script to dedup the json → purge vault → refresh web vault page, which causes another master password prompt → see apparently-empty vault with “There are no items to list” message, which I took as verification that the purge was successful → import deduped json file → refresh web vault page again, same as before → see vault with many entries quadrupled.
If I manage to reproduce, I’ll open an issue. Thanks for the pointer @djsmith85; I’m convinced now it’s a subtle enough issue that it would be premature to start scanning the source code. Thanks @dh024.
Done them all. Made sure there were only single entries in Lastpass. Cleared the vault three times and purged before importing. No luck.
Finally, I just opened it on my desktop machine and manually deleted alternate entries. Going forward, I will manually add rather than import because I am using BW in my mobile devices and LP on my desktop.