[PM-32572]Premium to organization upgrade does not set public/private key pair or default collection#7076
Conversation
|
New Issues (2)Checkmarx found the following issues in this Pull Request
|
β¦rade-does-not-set-public-private-key-pair-or-default-collection
| Assert.NotEqual(Guid.Empty, organizationId); | ||
|
|
||
| await _organizationRepository.Received(1).CreateAsync( | ||
| Arg.Is<Organization>(org => |
There was a problem hiding this comment.
β Should the public and private keys be checked here also?
sbrown-livefront
left a comment
There was a problem hiding this comment.
Looks good! Small non-blocking comment on a test
There was a problem hiding this comment.
βοΈ I'm not sure this test is named correctly since the removal of a lot of the metadata changes nor is it testing anything we haven't tested I believe. Can we remove it?
β¦rade-does-not-set-public-private-key-pair-or-default-collection
|
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7076 +/- ##
==========================================
+ Coverage 56.76% 56.77% +0.01%
==========================================
Files 2014 2014
Lines 88218 88251 +33
Branches 7855 7855
==========================================
+ Hits 50073 50107 +34
+ Misses 36321 36320 -1
Partials 1824 1824 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
ποΈ Tracking
https://bitwarden.atlassian.net/browse/PM-32572
π Objective
This PR fixes a bug where upgrading from a Premium individual subscription to an organization plan did not properly initialize the organization's
cryptographic key pair or create a default collection.
Bug Fix
Problem: When users upgraded their Premium subscription to an organization plan (Teams/Families/Enterprise), the resulting organization was
missing:
This left organizations in an incomplete state, potentially blocking users from properly sharing vault items or performing other organization
operations that depend on these keys.
Solution:
Changes
πΈ Screenshots