dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
35.04k stars 1.71k forks source link

Fix duplicate folder creations during import #4702

Closed BlackDex closed 1 week ago

BlackDex commented 1 week ago

During import you are able to select an existing folder, or with Bitwarden exports it can contain existing folders already. In either case it didn't matter, we always created new folders.

Bitwarden uses the same UUID of the selected or existing folders if they are already there.

This PR fixes this by using the same behaviour.

Fixes #4700