Skip to content

[PM-34427] Fix Users can edit and save sends with the hide email address option enabled#7509

Merged
harr1424 merged 1 commit intomainfrom
PM-34427-Defect-Users-can-edit-and-save-sends-with-the-hide-email-address-option-enabled
Apr 20, 2026
Merged

[PM-34427] Fix Users can edit and save sends with the hide email address option enabled#7509
harr1424 merged 1 commit intomainfrom
PM-34427-Defect-Users-can-edit-and-save-sends-with-the-hide-email-address-option-enabled

Conversation

@harr1424
Copy link
Copy Markdown
Contributor

🎟️ Tracking

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

📔 Objective

Existing Policy Sync logic (SendControls, SendOptions, and DisableSend sync events) was pre-assigning a valid GUID to new Policy entities before calling UpsertAsync, which routed to Policy_Update and silently affected 0 rows instead of inserting.

The Id is now left as default(Guid) so UpsertAsync correctly routes to CreateAsync on first sync. Only first-time syncs were affected (when no legacy/target row existed yet), which is why this behavior appeared intermittent.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details6d047636-11e0-4446-a0c7-c3f79f621736

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.10%. Comparing base (26f0702) to head (6083155).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7509      +/-   ##
==========================================
- Coverage   59.10%   59.10%   -0.01%     
==========================================
  Files        2078     2078              
  Lines       91705    91699       -6     
  Branches     8152     8151       -1     
==========================================
- Hits        54201    54195       -6     
  Misses      35572    35572              
  Partials     1932     1932              

☔ 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.

@harr1424 harr1424 marked this pull request as ready for review April 20, 2026 17:25
@harr1424 harr1424 requested a review from a team as a code owner April 20, 2026 17:25
@harr1424 harr1424 requested a review from sven-bitwarden April 20, 2026 17:25
@harr1424 harr1424 merged commit 7c20581 into main Apr 20, 2026
46 checks passed
@harr1424 harr1424 deleted the PM-34427-Defect-Users-can-edit-and-save-sends-with-the-hide-email-address-option-enabled branch April 20, 2026 18:44
harr1424 added a commit that referenced this pull request Apr 20, 2026
…ess option enabled (#7511)

* fix sync bug (#7509)

(cherry picked from commit 7c20581)

* [deps] Tools: Update MailKit to 4.16.0 [SECURITY] (#7502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 327290c)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants