mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-21 23:52:35 -05:00
[PR #4702] [MERGED] Fix duplicate folder creations during import #7115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4702
Author: @BlackDex
Created: 7/4/2024
Status: ✅ Merged
Merged: 7/4/2024
Merged by: @dani-garcia
Base:
main← Head:fix-duplicate-folder-on-import📝 Commits (1)
30b4579Fix duplicate folder creations during import📊 Changes
2 files changed (+14 additions, -6 deletions)
View changed files
📝
src/api/core/ciphers.rs(+13 -6)📝
src/api/core/folders.rs(+1 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.