Skip to content

[PM-33151] Fix: Register NoopBusinessUnitConverter for OSS builds#7147

Open
boris324 wants to merge 1 commit intobitwarden:mainfrom
boris324:fix/oss-business-unit-converter
Open

[PM-33151] Fix: Register NoopBusinessUnitConverter for OSS builds#7147
boris324 wants to merge 1 commit intobitwarden:mainfrom
boris324:fix/oss-business-unit-converter

Conversation

@boris324
Copy link

@boris324 boris324 commented Mar 4, 2026

Summary

  • Fixes OSS flag leads to runtime error #6292
  • IBusinessUnitConverter was only registered in the Commercial module, causing InvalidOperationException when compiled with OSS flag
  • Added NoopBusinessUnitConverter following the existing Noop pattern (e.g. NoopProviderService)
  • Registered in AddOosServices() in ServiceCollectionExtensions.cs

Test plan

  • Compile with OSS flag enabled
  • Navigate to Admin Console → Members
  • Verify no runtime DI error occurs

IBusinessUnitConverter is only registered in the Commercial module.
When compiled with OSS flag, the DI container cannot resolve it for
OrganizationBillingController. Register a no-op implementation in
AddOosServices() following the existing Noop pattern.

Resolves bitwarden#6292
@boris324 boris324 requested a review from a team as a code owner March 4, 2026 20:57
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal tracking system for review.
ID: PM-33151
Link: https://bitwarden.atlassian.net/browse/PM-33151

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title Fix: Register NoopBusinessUnitConverter for OSS builds [PM-33151] Fix: Register NoopBusinessUnitConverter for OSS builds Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSS flag leads to runtime error

3 participants