Skip to content

fix(common-web): use semver-compatible main version for plugin SDK placeholder - #25990

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/sdk-main-version
Oct 7, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/sdk-main-version

Conversation

@imdt-claudiop

Copy link
Copy Markdown
Contributor

What does this PR do?

Changes how %%HTML5_PLUGIN_SDK_MAIN_VERSION%% is resolved in plugin manifest URLs so it follows semver compatibility:

SDK version Before After
0.1.26 0.1 0.1
1.0.0-beta.3 1.0 1
1.1.0 1.1 1
2.5.3 2.5 2
  • PluginUtils gets a dedicated getPluginSdkMainVersion: major only from 1.0 on, 0.<minor> for 0.x.
  • %%BBB_MAIN_VERSION%% is unchanged (still major.minor, e.g. 4.0), since BigBlueButton server lines are not compatible across minors.
  • docs/docs/plugins.md updated with the new rule.

Closes Issue(s)

None.

Motivation

Under semver, from 1.0 on the major alone defines compatibility: a plugin built for SDK 1.0 also works with 1.1, so both should share the folder 1. Before 1.0, every minor is a breaking line of its own, so 0.1 and 0.2 must stay apart. The previous major.minor rule would split compatible 1.x SDKs into different folders. This should land before the next 4.0 release candidate, since 4.0 ships SDK 1.0.0-beta.3.

How to test

  1. On a server with this change, create a meeting with a plugin URL that uses the placeholders, for example pluginManifests=[{"url":"https://<host>/plugins/%%HTML5_PLUGIN_SDK_MAIN_VERSION%%/sdk-%%HTML5_PLUGIN_SDK_VERSION%%/bbb-%%BBB_MAIN_VERSION%%/manifest.json"}], and check the URL bbb-web fetches (bbb-web log or nginx access log). It should be /plugins/1/sdk-1.0.0-beta.3/bbb-4.0/manifest.json. Before this change it was /plugins/1.0/sdk-1.0.0-beta.3/....

Validation was done this way on a 4.0 server built from source: with this change the meeting fetched /plugins/1/sdk-1.0.0-beta.3/bbb-4.0/manifest.json, and without it /plugins/1.0/sdk-1.0.0-beta.3/bbb-4.0/manifest.json. Prerelease suffixes do not affect the result, since only major and minor are read from the parsed version: with the java-semver 0.10.2 that bbb-web ships, 1.0.0-beta.1, 1.0.0-rc.1, 1.0.0-rc.2 and 1.1.0-beta.1 all give 1, and 0.1.0-beta.1 gives 0.1.

No unit tests are included, per team preference.

More

  • Added/updated documentation

…aceholder

%%HTML5_PLUGIN_SDK_MAIN_VERSION%% was always replaced by major.minor, so
SDK 1.0.0-beta.3 resolved to "1.0" and a 1.1 SDK would land in a different
folder even though it is compatible. Under semver, from 1.0 on the major
alone defines compatibility, while in 0.x every minor is a breaking line.

The placeholder now resolves to the major only for 1.0 and later (1.0.0-beta.3
and 1.1.0 both give "1") and keeps "0.<minor>" for 0.x versions (0.1.26 gives
"0.1"). %%BBB_MAIN_VERSION%% keeps major.minor, since server lines are not
compatible across minors.

Co-Authored-By: Guilherme Pereira Leme <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8ead9326-8e48-4b48-a045-ac92eb4ba0b7
📥 Commits

Reviewing files that changed from the base of the PR and between d6f9d40 and c721881.

📒 Files selected for processing (2)
  • bbb-common-web/src/main/java/org/bigbluebutton/api/util/PluginUtils.java
  • docs/docs/plugins.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


Walkthrough

The HTML5 Plugin SDK main-version placeholder now uses the major version alone for SDK versions from 1.0 onward. For 0.x versions, it uses the major and minor versions. The plugin documentation describes this rule. BBB main-version expansion continues to use its existing major-and-minor rule.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: antobinary

Merge Risk: ⚪ Minimal · up to c7218

SDK manifest paths follow the documented compatibility rule, while BBB version paths retain their existing behavior. No actionable merge risk is established.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: updating the plugin SDK placeholder to use semver-compatible main versions.
Description check ✅ Passed The description directly explains the placeholder behavior change, the compatibility rules, the unchanged BBB version rule, documentation updates, and validation results.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Arthurk12 Arthurk12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and is working.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🚨 Automated tests failed

@antobinary
antobinary merged commit cae0957 into bigbluebutton:v4.0.x-develop Oct 7, 2026
33 of 34 checks passed
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.

4 participants