Skip to content

[PM-37727] Fix exceptions when serialzing blob-encrypted ciphers#7667

Open
nikwithak wants to merge 1 commit into
mainfrom
vault/pm-37727/blob-encryption
Open

[PM-37727] Fix exceptions when serialzing blob-encrypted ciphers#7667
nikwithak wants to merge 1 commit into
mainfrom
vault/pm-37727/blob-encryption

Conversation

@nikwithak
Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-37727

📔 Objective

When saving a blob-encrypted cipher from the client, the Server throws errors because it is expecting the JSON data for parsing. This adds a function call to see if a cipher is blob encrypted, and skip the ciphertype extractions if so.

@nikwithak nikwithak changed the title [] Fix exceptions when serialzing blob-encrypted ciphers [PM-37727] Fix exceptions when serialzing blob-encrypted ciphers May 18, 2026
@nikwithak nikwithak marked this pull request as ready for review May 18, 2026 22:38
@nikwithak nikwithak requested a review from a team as a code owner May 18, 2026 22:39
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.49%. Comparing base (766c33b) to head (4d3d01f).

Files with missing lines Patch % Lines
src/Api/Vault/Controllers/CiphersController.cs 0.00% 0 Missing and 1 partial ⚠️
src/Core/Vault/Entities/Cipher.cs 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7667      +/-   ##
==========================================
+ Coverage   59.98%   64.49%   +4.51%     
==========================================
  Files        2133     2133              
  Lines       93731    93741      +10     
  Branches     8311     8314       +3     
==========================================
+ Hits        56220    60458    +4238     
+ Misses      35531    31208    -4323     
- Partials     1980     2075      +95     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant