[PM-38456]: Allow License Generation for Sales Trial Orgs#7793
[PM-38456]: Allow License Generation for Sales Trial Orgs#7793sbrown-livefront wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7793 +/- ##
=======================================
Coverage 61.09% 61.09%
=======================================
Files 2173 2173
Lines 96631 96634 +3
Branches 8701 8702 +1
=======================================
+ Hits 59040 59043 +3
+ Misses 35489 35486 -3
- Partials 2102 2105 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the relaxation of the null-subscription guard in Code Review DetailsNo findings. |
…-for-sales-trials
…-for-sales-trials
|



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-38456
📔 Objective
Some Sales-assisted trial organizations are created with no Stripe subscription — the sales team sets an
ExpirationDatedirectly in the Admin portal instead.GetCloudOrganizationLicenseQuery.GetLicenseAsyncwas throwing"No active subscription found."unconditionally wheneversubscriptionInfo.Subscription is null, which blocked license file generation for these orgs entirely.The fix relaxes that guard to pass through when the org has a future
ExpirationDate, allowingLicenseExtensions.CalculateFreshExpirationDate(which already had the correct fallback from PM-21415) to useorg.ExpirationDatedirectly.Before: Any org without a Stripe subscription →
BadRequestExceptionAfter:
BadRequestException("No active subscription found.")BadRequestException("No active subscription found.")org.ExpirationDateas the expiration📸 Screenshots
No Subscription with Future Expiration Date
Screen.Recording.2026-06-09.at.3.55.37.PM.mov
No Subscription with Expire Expiration Date
Screen.Recording.2026-06-09.at.3.56.25.PM.mov