Skip to content

Fix(akka): Add Disable feature support for plugins - #24909

Merged
antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
Tainan404:i-24881
Apr 15, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
Tainan404:i-24881

Conversation

@Tainan404

Copy link
Copy Markdown
Member

What does this PR do?

Make the disable feature for plugins works

Closes Issue(s)

Closes #24881

How to test

  • Add a plugin to a meeting
  • Add the disabledFeatures=plugins
  • Create a meeting
  • Join a meeting
  • See if the plugin is loaded

@Tainan404
Tainan404 requested a review from Copilot April 14, 2026 02:43
@coderabbitai

coderabbitai Bot commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes address a bug where the disabledFeatures=plugins parameter was not being respected during meeting creation. Two classes were modified to check if "plugins" is present in the disabled features list before loading plugin manifests. In MeetingService.createMeeting(), the condition to skip manifest fetching now includes disabled features in addition to breakout meeting checks. In ParamsProcessorUtil.java, manifest processing now gates on both the breakout status and the disabled features list. This ensures plugin manifests are not loaded when the feature is explicitly disabled.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. 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 accurately describes the main change: adding disable feature support for plugins, which directly addresses the PR's core objective.
Description check ✅ Passed The description is related to the changeset and explains what the PR does, references the linked issue, and provides testing instructions.
Linked Issues check ✅ Passed The code changes directly address issue #24881 by modifying plugin manifest loading logic to respect the disabledFeatures setting for plugins.
Out of Scope Changes check ✅ Passed All changes are scoped to fixing plugin disable feature support in MeetingService and ParamsProcessorUtil, directly related to the linked issue.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes disabledFeatures=plugins take effect by preventing plugin manifests from being parsed/fetched when plugins are disabled for a meeting.

Changes:

  • Skip plugin manifest processing in ParamsProcessorUtil when disabledFeatures contains plugins.
  • Skip plugin manifest fetching in MeetingService.createMeeting when disabledFeatures contains plugins.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java Stops building plugin manifest list when plugins are disabled.
bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java Avoids fetching plugin manifests when plugins are disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Map<String, Object> pluginsMap;
ArrayList<Object> sharedNotesInitialContentMap = getSharedNotesInitialContent(m);
if (m.isBreakout()) {
if (m.isBreakout() || m.getDisabledFeatures().contains("plugins")) {

Copilot AI Apr 14, 2026

Copy link

Choose a reason for hiding this comment

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

When disabledFeatures includes plugins, this branch assigns pluginsMap = plugins (the method argument). For breakout rooms, plugins is propagated from the parent (message.pluginProp) and may be non-empty, so plugins can still be enabled even though the meeting explicitly disables them. Consider handling plugins disable as an overriding condition: if plugins are disabled, set pluginsMap to an empty map (and skip fetching), otherwise keep the current breakout/normal behavior.

Suggested change
if (m.isBreakout() || m.getDisabledFeatures().contains("plugins")) {
if (m.getDisabledFeatures().contains("plugins")) {
pluginsMap = new HashMap<>();
} else if (m.isBreakout()) {

Copilot uses AI. Check for mistakes.
// Parse Plugins Manifests from config and param
ArrayList<PluginManifest> listOfPluginManifests = new ArrayList<PluginManifest>();
if (!isBreakout){
if (!isBreakout && !listOfDisabledFeatures.contains("plugins")){

Copilot AI Apr 14, 2026

Copy link

Choose a reason for hiding this comment

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

This change adds new behavior (skipping plugin manifest parsing when disabledFeatures contains plugins) but there doesn’t appear to be any automated coverage for ParamsProcessorUtil.processCreateParams. Consider adding a unit test to assert that disabledFeatures=plugins results in an empty pluginManifests list (and, end-to-end, that MeetingService.createMeeting does not fetch/populate plugins).

Copilot uses AI. Check for mistakes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java (1)

575-579: ⚠️ Potential issue | 🟠 Major

Don’t reuse the caller-provided plugin map when plugins are disabled.

Line 575 currently treats isBreakout() and disabledFeatures=plugins as the same branch. In processCreateBreakoutRoom() this overload is still called with message.pluginProp (Line 936) after disabled features are propagated (Line 919), so a breakout with plugins disabled will still inherit and expose those plugins.

Suggested fix
-      if (m.isBreakout() || m.getDisabledFeatures().contains("plugins")) {
-        pluginsMap = plugins;
-      } else {
-        pluginsMap = requestPluginManifests(m);
-      }
+      if (m.getDisabledFeatures().contains("plugins")) {
+        pluginsMap = new HashMap<>();
+      } else if (m.isBreakout()) {
+        pluginsMap = plugins;
+      } else {
+        pluginsMap = requestPluginManifests(m);
+      }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java`
around lines 575 - 579, The code currently conflates m.isBreakout() with
m.getDisabledFeatures().contains("plugins") and reuses the caller-provided
plugins map (plugins / message.pluginProp) even when plugins were disabled;
update the branching so that a breakout room only inherits the caller plugin map
when plugins are not disabled, and when disabledFeatures contains "plugins" do
not reuse the provided map (use an empty/no-plugins result instead) rather than
calling requestPluginManifests; locate this in MeetingService where pluginsMap
is assigned (refer to pluginsMap, requestPluginManifests(), isBreakout(),
getDisabledFeatures(), processCreateBreakoutRoom(), and message.pluginProp) and
implement the conditional split: breakout-with-plugins -> inherit caller map,
disabled-plugins -> no plugins, otherwise -> requestPluginManifests(m).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java`:
- Around line 575-579: The code currently conflates m.isBreakout() with
m.getDisabledFeatures().contains("plugins") and reuses the caller-provided
plugins map (plugins / message.pluginProp) even when plugins were disabled;
update the branching so that a breakout room only inherits the caller plugin map
when plugins are not disabled, and when disabledFeatures contains "plugins" do
not reuse the provided map (use an empty/no-plugins result instead) rather than
calling requestPluginManifests; locate this in MeetingService where pluginsMap
is assigned (refer to pluginsMap, requestPluginManifests(), isBreakout(),
getDisabledFeatures(), processCreateBreakoutRoom(), and message.pluginProp) and
implement the conditional split: breakout-with-plugins -> inherit caller map,
disabled-plugins -> no plugins, otherwise -> requestPluginManifests(m).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 2ecd0731-246f-4f9c-9749-d4981a0f1a75

📥 Commits

Reviewing files that changed from the base of the PR and between 5ab783e and 7f62eec.

📒 Files selected for processing (2)
  • bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java
  • bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java

@antobinary antobinary added this to the Release 3.0 milestone Apr 14, 2026
@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary
antobinary merged commit 38d91cc into bigbluebutton:v3.0.x-develop Apr 15, 2026
79 of 89 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.

disableFeatures=plugins not taking effect

4 participants