-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[PM-22344] - fix Error: Cannot Decrypt when moving a vault item to a collection #5911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@jaasen-livefront Switching to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've got some failing tests we need to fix before merge
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5911 +/- ##
==========================================
+ Coverage 47.73% 47.74% +0.01%
==========================================
Files 1665 1665
Lines 75014 75015 +1
Branches 6755 6755
==========================================
+ Hits 35806 35814 +8
+ Misses 37743 37741 -2
+ Partials 1465 1460 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -1106,7 +1106,8 @@ public async Task<CipherMiniResponseModel[]> PutShareMany([FromBody] CipherBulkS | |||
userId | |||
); | |||
|
|||
return updated.Select(c => new CipherMiniResponseModel(c, _globalSettings, false)).ToArray(); | |||
var response = updated.Select(c => new CipherMiniResponseModel(c, _globalSettings, false)).ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need the toArray anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-22344
📔 Objective
This PR fixes an issue where the
/cipher/share
endpoint was causing the shared cipher's encryption to break. This was due to a change from this PR that changed usingToCipher
to casting withCipher
which caused a loss of the associated data and thus a failure of decryption in the client. It also returns as aListResponseModel
and updates the tests.📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes