mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-16 17:02:14 -05:00
[PR #5200] [MERGED] Fix Org Import duplicate collections #7215
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/5200
Author: @BlackDex
Created: 11/16/2024
Status: ✅ Merged
Merged: 11/17/2024
Merged by: @dani-garcia
Base:
main← Head:fix-org-coll-import📝 Commits (1)
787a645Fix Org Import duplicate collections📊 Changes
3 files changed (+27 additions, -27 deletions)
View changed files
📝
src/api/core/ciphers.rs(+5 -5)📝
src/api/core/organizations.rs(+21 -18)📝
src/api/core/two_factor/duo_oidc.rs(+1 -4)📄 Description
This fixes an issue with collections be duplicated same as was an issue with folders. Also made some optimizations by using HashSet where possible and define the Vec/Hash capacity. And instead of passing objects only use the UUID which was the only value we needed.
Also found an issue with importing a personal export via the Org import where folders are used. Since Org's do not use folder we needed to clear those out, same as Bitwarden does.
Fixes #5193
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.