Skip to content

Fix whitespace handling in disabledFeaturesExclude - #26398

Merged
ramonlsouza merged 2 commits into
bigbluebutton:v4.0.x-developfrom
Tainan404:fix-disabled-features-exclude-spacing
Nov 4, 2026
Merged

ramonlsouza merged 2 commits into
bigbluebutton:v4.0.x-developfrom
Tainan404:fix-disabled-features-exclude-spacing

Conversation

@Tainan404

Copy link
Copy Markdown
Member

What does this PR do?

This fixes disabledFeaturesExclude so comma-separated feature names are trimmed before they are removed from the effective disabled feature list.

Closes Issue(s)

Closes #26233

What changed

  • Reuse the normalized exclusion list instead of splitting the raw parameter a second time.
  • Add a Spock regression spec for meeting-level and server-default exclusions with spaces, plus the existing no-space behavior.
  • Add an @ci Playwright regression case next to the existing chat exclusion test.
  • Raise the Gradle test discovery floor from 80 to 83 for the three new Spock cases.

Evidence

Before, disabledFeaturesExclude=polls,%20chat left chat disabled while Polling remained available. The Apps Gallery is visible at 00:10:

Before: Polling is available but public chat is absent

After, Public Chat is visible at 00:08 and Polling remains available in the Apps Gallery at 00:15:

After: Public Chat and Polling are available

Tests

  • ./gradlew test --no-daemon in bigbluebutton-web, on this branch merged with the current v4.0.x-develop (bbb-common-message and bbb-common-web built from the same tree): 108 tests executed, floor 83, 0 failures, 11 skipped. The three new Spock cases pass.
  • Before that merge, on the original base of this branch:
    • Playwright Chat (exclude) and Chat (exclude, space after comma): passing on Chromium against BBB 4.0 built from source.
    • ESLint and Prettier checks pass for the two changed Playwright files.
    • GraphQL readbacks: spaced meeting exclusion {chat} to {}, no-space control {} to {}, and spaced server-default exclusion {polls} to {}.

Known limitations

  • Breakout room creation can reapply the server default disabled feature list because it does not carry disabledFeaturesExclude; that existing behavior is outside this fix.
  • The Spock and sbt suites are not run by upstream CI, so the @ci Playwright case is the CI regression guard.
  • test: Join and Create parameters coverage #26357 adds a test for this same bug, tagged @known-issue (An exclude list with a space after the comma re-enables chat). Once both are merged, that tag should no longer be needed.

Documentation

No documentation change is needed. The API documentation already describes disabledFeaturesExclude as a comma-separated list, and this change makes the implementation match that contract.

imdt-claudiop and others added 2 commits October 28, 2026 17:27
Resolve the bigbluebutton-web/build.gradle conflict by raising the
upstream test floor from 80 to 83 for the three new Spock cases,
instead of lowering it to this branch's 43.
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The code now trims comma-separated DISABLED_FEATURES_EXCLUDE values before removing matching disabled features. New Spock and Playwright tests cover exclusions with spaces, including cases that use request values and server defaults. The minimum expected test count for bigbluebutton-web increases from 80 to 83.

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

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: ramonlsouza, paultrudel

Merge Risk: Minimal · up to e319e

The change makes spaced feature exclusions behave like unspaced exclusions, with regression coverage for the affected behavior. No actionable merge-blocking risk remains after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed 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%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "Fix whitespace handling in disabledFeaturesExclude" matches the main change. The PR trims comma-separated feature names in disabledFeaturesExclude before removing them from the disabled-fea…
Description check Passed The description is directly related to the changeset. It explains that disabledFeaturesExclude now trims comma-separated feature names before removal, and it lists the changed files and test additions…
Linked Issues check Passed Issue #26233 requires trimmed comma-separated disabledFeaturesExclude values for meeting-level and server-default disabled features. ParamsProcessorUtil.java now removes entries from `listOfDisabl…
Out of Scope Changes check Passed All changed files support issue #26233. The Java change implements the fix. The Spock and Playwright changes add regression coverage. The Gradle test floor accounts for the new Spock cases. No unrelat…
Full details: Title check

Explanation

The title "Fix whitespace handling in disabledFeaturesExclude" matches the main change. The PR trims comma-separated feature names in disabledFeaturesExclude before removing them from the disabled-feature list, and it adds tests for the spaced and non-spaced cases. The title is concise, specific, and names the affected parameter.

Full details: Description check

Explanation

The description is directly related to the changeset. It explains that disabledFeaturesExclude now trims comma-separated feature names before removal, and it lists the changed files and test additions: a Spock spec, a Playwright @ci case, and a raised Gradle test floor. It also links issue #26233 and gives test evidence.

Full details: Linked Issues check

Explanation

Issue #26233 requires trimmed comma-separated disabledFeaturesExclude values for meeting-level and server-default disabled features. ParamsProcessorUtil.java now removes entries from listOfDisabledFeaturesExclude after String::trim, so polls, chat matches chat. The new ParamsProcessorUtilDisabledFeaturesSpec covers a meeting-level spaced exclusion, a spaced server-default exclusion, and the no-space control. The Playwright @ci case covers the encoded spaced parameter. The reported test runs passed.

Full details: Out of Scope Changes check

Explanation

All changed files support issue #26233. The Java change implements the fix. The Spock and Playwright changes add regression coverage. The Gradle test floor accounts for the new Spock cases. No unrelated production behavior, documentation, or administrative change is present.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 3 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · 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
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cfc54a24-701b-4ee0-926f-40fa30fd9af9
Commits

Reviewing files that changed from the base of the PR and between 6086a9b and e319ed8.

Files selected for processing: 5
  • bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java
  • bigbluebutton-tests/playwright/parameters/constants.ts
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts
  • bigbluebutton-web/build.gradle
  • bigbluebutton-web/src/test/groovy/org/bigbluebutton/api/ParamsProcessorUtilDisabledFeaturesSpec.groovy

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

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@ramonlsouza ramonlsouza added this to the Release 4.0 milestone Nov 4, 2026
@ramonlsouza
ramonlsouza self-requested a review November 4, 2026 12:54
@ramonlsouza
ramonlsouza merged commit c0cbdee into bigbluebutton:v4.0.x-develop Nov 4, 2026
35 checks passed
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Nov 9, 2026
Two fixes reached v4.0.x-develop after this branch was cut, each with its
own @ci test:

- bigbluebutton#26398 fixed bigbluebutton#26233 (ParamsProcessorUtil now removes the trimmed
  disabledFeaturesExclude entries) and added 'Chat (exclude, space after
  comma)', which sends the same query as the known-issue test here.
- bigbluebutton#26441 fixed bigbluebutton#26358 and added three 'Hide Sidebar Navigation' tests.
  They check that userdata-bbb_hide_sidebar_navigation=true keeps both
  the navigation sidebar and the sidebar content panel closed, against a
  moderator who joined without the parameter.

Once merged, the bigbluebutton#26233 and bigbluebutton#26358 known-issue tests would repeat gating
tests, and their comments, which explain the bugs, would be wrong. The
nightly hide_sidebar_navigation test checks less than the new @ci tests,
so it goes as well. This branch now adds 61 @nightly and 2 @known-issue
tests.
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.

disabledFeaturesExclude: a feature written after ", " (comma and space) is not re-enabled

3 participants