Repository navigation
build: upgrade bbb-web stack to Grails 8.0.0 / Spring Boot 4.1.1 - #25466
antobinary merged 37 commits into
Conversation
…WIP) - bigbluebutton-web: Grails 7.0.8 -> 8.0.0-M3, Spring Boot 3.5.14 -> 4.1.0, Groovy 4.0.21 -> 5.0.7, Gradle wrapper 8.14.3 -> 9.6.0 - drop tomcat-embed 10.1 pins (Boot 4.1 manages Tomcat 11.0.22); Jakarta EE 11 validation stack (validation-api 3.1.1, hibernate-validator 9.1.0.Final, EL impl now via tomcat-embed-el); asset-pipeline plugin moved to its new cloud.wondrify coordinates (5.2.0-M1); Gradle 9 DSL fixes (url=/version=/ group= assignments, layout.buildDirectory instead of project.buildDir) - ApiController: replace Groovy-internal ListHashMap with LinkedHashMap - bbb-common-web: spring-data-commons 4.1.0, jackson 2.21.5, hibernate-validator 9.1.0.Final, jakarta.servlet-api 6.1.0 (provided), jakarta.annotation-api 3.0.0; drop dead javax.servlet-api 4.0.1, org.glassfish:jakarta.el and the duplicate scala-xml 2.0.0 declaration - bbb-common-message: use RedisURI.Builder.withPassword(char[]) - the String overload was removed in Lettuce 7 (Spring Boot 4.1 manages 7.5.2); the char[] overload also exists in Lettuce 6.1.5 used by the pekko apps Verified in the bbb40 dev container: sbt publish of both common jars, gradle clean assemble (war output name unchanged), bootRun startup on port 8091, and getMeetings API round-trip including checksum validation. Note: Grails 8 is still pre-release (8.0.0-M3 is the latest published; v8.0.0-M4 is tagged but has no artifacts on Maven Central yet). Refs bigbluebutton#25449 Co-Authored-By: Claude Fable 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe pull request updates bbb-web to Grails 8 and a newer Gradle, Groovy, Spring, and dependency stack. It changes runtime limits and service packaging, and adds Playwright tests for response headers, cross-origin framing, and requests with 1,200 parameters. Documentation now describes the updated stack and response behavior. Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Merge Risk: 🔵 Low · up to
|
- dev-guide: bump sdkman tool versions (gradle 9.6.0, grails 8.0.0-M3, sbt 1.10.7 matching project/build.properties) - new-features: update the BBB 4.0 upgraded-components list (Grails 8.0.0-M3, Gradle 9.6.0, Groovy 5.0.7, Spring Framework 7.0.8, Spring Boot 4.1.0, embedded Tomcat 11.0.22) - bigbluebutton-web/README: rewrite stale Grails 3-era instructions (gradle 5.1.1/grails 3.3.9, grails CLI commands) around the Gradle wrapper and the current stack; fix dev port (8090) and packages-template path Refs bigbluebutton#25449 Co-Authored-By: Claude Fable 5 <[email protected]>
Gradle 9 removes the project-level sourceCompatibility/targetCompatibility
conventions, space-assignment syntax (version '0.0.1'), and the
BasePluginConvention archivesBaseName property. Building pres-checker with
Gradle 9.6.0 failed at configuration time on the first of these:
Could not set unknown property 'sourceCompatibility' for root project
'bbb-pres-check'
Replace them with the java {} extension block, `version =` assignment, and
base { archivesName }. All three replacements are equally valid on Gradle
8.14.3 (the version the current docker-bbb-build packaging image ships), so
this lands safely before the image moves to Gradle 9 - verified by building
with both 8.14.3 and 9.6.0.
The produced artifact keeps the exact name bbb-pres-check-0.0.1.jar that
build/packages-template/bbb-web/build.sh expects. Runtime behavior verified
against generated decks: valid .pptx accepted (exit 0), all-slides-hidden
.pptx rejected (exit 2), before and after.
Co-Authored-By: Claude Fable 5 <[email protected]>
The packaging script (build/packages-template/bbb-web/build.sh) and the dev script (pres-checker/build.sh) invoked bare `gradle`, so the Gradle version used for pres-checker was whatever the docker-bbb-build image happened to ship - the only place in the bbb-web build that bypassed the wrapper, and the reason a packaging-image Gradle bump could break this component independently of the repo. Invoke the parent project's ./gradlew instead (pres-checker has its own settings.gradle, so it still builds as a standalone root project - same semantics as before). The pinned wrapper version now applies to every Gradle invocation in the bbb-web packaging path, and the system gradle installed in the packaging image becomes irrelevant to bbb-web. Verified: `../gradlew clean resolveDeps jar` from pres-checker/ builds bbb-pres-check-0.0.1.jar with the wrapper-pinned Gradle 9.6.0. Co-Authored-By: Claude Fable 5 <[email protected]>
The packaging script copied build/libs/bbb-pres-check-0.0.1.jar by its exact name, so any version bump in pres-checker/build.gradle would abort packaging at this cp (the script runs under set -e). Copy bbb-pres-check-*.jar instead; the archives name is stable and clean is run first, so exactly one jar exists in build/libs when this line executes. Co-Authored-By: Claude Fable 5 <[email protected]>
…esolves The declared pins were dead text: Gradle conflict resolution overrode commons-io 2.11.0 -> 2.18.0, commons-lang3 3.9 -> 3.16.0, xmlbeans 5.1.1 -> 5.3.0 and commons-collections4 4.4 -> 4.5.0 via POI's own transitive requirements, so the build file misrepresented the runtime classpath. - Bump POI 5.4.1 -> 5.5.1, aligning with the version bbb-common-web already uses for presentation processing. - Pin commons-lang3 explicitly to 3.20.0, the same version bigbluebutton-web forces via its dependencySubstitution, instead of silently resolving to whatever POI drags in (3.18.0 for POI 5.5.1). - Bump commons-collections4 (genuinely used: CollectionUtils/Predicate in Main.java) to the 4.5.0 that actually resolves. - Drop the commons-io declaration and its unused FilenameUtils import in Main.java - nothing in pres-checker uses commons-io directly; POI still brings it transitively for its own needs (2.21.0). - Drop the xmlbeans pin - it was below what poi-ooxml requires and lost the conflict resolution anyway (5.3.0 resolves either way). Verified: wrapper build succeeds, runtimeClasspath shows the expected versions, and the generated-deck checks still pass (valid=0, all-hidden=2). Co-Authored-By: Claude Fable 5 <[email protected]>
POI 5.x logs through the log4j2 API, but no provider was on the prescheck classpath, so every invocation printed main ERROR Log4j API could not find a logging provider. and any POI warning or error while parsing a deck was dropped before logging could happen. Add log4j-core as runtimeOnly at 2.24.3 - the exact version POI 5.5.1's log4j-bom manages for its log4j-api - so resolveDeps ships a matching provider. Note the benefit is limited to manual runs of prescheck.sh (debugging a rejected deck by hand): in the bbb-web upload path ExternalProcessExecutor.exec() redirects the child's stdout and stderr to DISCARD, so OfficeDocumentValidator2 only ever consumes the exit code. Surfacing POI diagnostics in that path would require the executor to stop discarding stderr - a separate change, out of scope here. The exit-code contract is unchanged (generated decks: valid=0, all-hidden=2, now with a clean stderr). Co-Authored-By: Claude Fable 5 <[email protected]>
…n-Class The jar manifest carried Java Web Start / applet-era attributes (Permissions, Codebase, Application-Library-Allowable-Codebase, Caller-Allowable-Codebase, Trusted-Only, Application-Name) that have been meaningless since JWS was removed in Java 11 - pres-checker is executed via `java -cp` from prescheck.sh, never deployed over JNLP. Replace them with the one attribute a CLI jar should have: Main-Class. Also drop `jar.enabled = true`, which is the java plugin's default. prescheck.sh is unchanged and remains the entrypoint (it supplies the lib/ classpath); Main-Class is a convenience/documentation attribute. Co-Authored-By: Claude Fable 5 <[email protected]>
…icate jars The packaged bbb-web never came up on Grails 8.0.0-M3 (CI: 502 on /create from nginx; service active but port never bound). Thread dump shows the main thread hot-spinning (157s CPU / 159s wall) in Grails 8's new plugin discovery: DefaultPluginDiscovery.loadDelayedPlugins -> areDependenciesResolved -> GrailsVersionUtils.isValidVersion. The re-queue branch for unsatisfied loadBefore relationships has no progress detection, so it never exits (the unresolved-dependency branch does have an escape to failedPlugins; the loadBefore branch does not). The trigger is our launch line: `-cp WEB-INF/lib/*:/:WEB-INF/classes/:.` puts every application jar on the system classloader while WarLauncher builds its own classloader over the same WEB-INF/lib and WEB-INF/classes - every Grails plugin descriptor is visible twice, which feeds the discovery loop a plugin graph it can never finish ordering. Grails 7's legacy plugin manager tolerated the duplication; 8.0.0-M3 spins forever. Launch the exploded war the way Boot documents it instead: `-cp .` from /usr/share/bbb-web (the loader classes sit at the war root; WarLauncher constructs the application classloader itself from WEB-INF/). The extra classpath entries were redundant belt-and-braces - WarLauncher never needed them. Verified in the bbb40 container through the real systemd path (exploded war, grails.env=prod): with the old line the JVM spins with zero app log output; with `-cp .` the service starts, binds 8090, and answers a checksummed getMeetings. Isolation tests: fat-war `java -jar` (prod) starts fine, and exploded `-cp .` starts fine - only the duplicated classpath hangs. The underlying livelock is a grails-core 8.0.0-M3 bug worth reporting upstream (loadDelayedPlugins needs progress detection), but bbb-web should use the minimal classpath regardless. Co-Authored-By: Claude Fable 5 <[email protected]>
|
|
This pull request has conflicts ☹ |
…-boot Resolve conflicts against v4.0.x-develop (217 commits since the branch point). Three files conflicted: - bigbluebutton-web/gradle.properties: keep the Grails 8.0.0-M3 / Gradle 9.6.0 / Groovy 5.0.7 / Spring Boot 4.1.0 stack from this branch; develop only bumped the old 7.0.8 / 3.5.16 line. - bigbluebutton-web/build.gradle: keep the Gradle 9 assignment syntax (version = / group =) and drop the develop-side ext[...] version pins (spring-framework 6.2.19, jackson-bom 2.22.1, tomcat 10.1.56, ...) and the transitive tomcat-embed 10.1.56 override. Those pin the Spring Boot 3.5 stack and would force downgrades under the Boot 4.1 BOM, which already manages newer, fixed versions (Spring Framework 7.0.8, Tomcat 11.0.22, Jackson 2.21.x). The tomcat-embed override was explicitly a TODO to remove once the managed version was fixed. - docs/docs/new-features.md: keep this branch's upgraded-components list while preserving the "Java 21 (OpenJDK)" line develop added. ApiController.groovy and dev-guide.md auto-merged cleanly; verified the Groovy 5 ListHashMap->LinkedHashMap fix and the M3/Gradle 9 SDKMAN docs survived.
8.0.0-M4 is now published on both Maven Central and repo.grails.org (grails-gradle-bom / grails-gradle-plugins / grails-bom all resolve). Its BOM pins the same downstream stack as M3, so only the Grails version moves: spring-boot 4.1.0, groovy 5.0.7, jackson2 2.21.5, jackson3 3.1.5 are unchanged. gradleWrapperVersion (9.6.0), groovyVersion (5.0.7) and springVersion (4.1.0) therefore stay put. Docs (dev-guide sdkman step, new-features upgraded-components list) updated to match.
The Grails 8 / Spring Boot 4.1 upgrade moves bbb-common-web from Jackson 2.13.5 to 2.21.5. Jackson 2.15+ ships StreamReadConstraints with a default 20 MB cap on the length of any single JSON string value; past that, parsing throws and the message is dropped. Large payloads are unlikely but possible (e.g. a big clientSettingsOverride passed to /create), so raise the limit to 100 MB on the shared JsonUtil.mapper. The reviewer suggested doing this in bbb-common-message/JsonUtil.scala, but that module is still compiled against Jackson 2.13.5, where com.fasterxml.jackson.core.StreamReadConstraints does not yet exist, so the code would not compile there. bbb-common-web compiles against 2.21.5 and owns the bbb-web JVM whose Jackson this PR actually bumps, so the shared mapper's factory is configured here, at gateway startup, before any inbound message is parsed. Verified the API (JsonFactory. setStreamReadConstraints, StreamReadConstraints.builder().maxStringLength) is present in the resolved jackson-core 2.21.5. Note: akka-bbb-apps already runs Jackson 2.18.9 and is likewise subject to the 20 MB default via the same shared mapper; that is pre-existing and out of scope here. Bumping bbb-common-message's own Jackson would be the way to cover it, but that is a wider, separately-verifiable change.
|
This pull request has conflicts ☹ |
…-boot # Conflicts: # .gitlab-ci.yml # bbb-common-message/src/main/java/org/bigbluebutton/common2/redis/RedisStorageService.java # bbb-common-message/src/main/scala/org/bigbluebutton/common2/redis/RedisClientProvider.scala # bbb-common-web/build.sbt # bbb-common-web/project/Dependencies.scala # bigbluebutton-web/build.gradle # bigbluebutton-web/gradle.properties # bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy # bigbluebutton-web/pres-checker/build.gradle # docs/docs/development/dev-guide.md # docs/docs/new-features.md
…1.0) Grails 8.0.0-M6 aligns on Spring Boot 4.1.1 and Groovy 5.1.0, and its BOMs move asset-pipeline (cloud.wondrify) to 5.2.0-M3. hibernate-validator follows Spring Boot 4.1.1 dependency management to 9.1.3.Final; spring-data-commons moves to the matching 4.1.1 on the bbb-common-web sbt side. The M6 artifacts are not on Maven Central yet: the ASF release vote (attempt 3, opened 2026-08-26) is still in progress, so the build temporarily also resolves from the Apache staging repository. Drop the staging repo entries once M6 is promoted to Central - the coordinates do not change. The Jackson comment in BbbWebApiGWApp is reworded: v4.0.x-develop has since moved bbb-common-message to Jackson 2.22.1, so the old rationale (StreamReadConstraints unavailable there) no longer holds; the constraint intentionally stays in bbb-web to keep the raised limit scoped to this JVM.
Rebuilt bbb-build image carrying the Grails 8 toolchain, replacing the grails-8--2026-07-20-153952 tag. To be replaced by a regular v4.0.x-release image once the Grails 8 toolchain lands in the official build image.
Spring Boot 4.1 lowered the default of server.tomcat.max-parameter-count from 10000 (Boot 3.5) to 1000. Tomcat 11 does not drop the extra parameters the way Tomcat 10.1 did: a request with more than 1000 parameters (query string plus form body) fails with InvalidParameterException and Tomcat's own HTML 500 page. After the Grails 8 upgrade an API call such as a create with many meta_ parameters, or a join with many userdata- parameters, would fail that way. Set the limit back to the value bbb-web ran with on Spring Boot 3.5. Measured with the same Spring Boot 4.1.1 / Tomcat 11.0.26 stack (3.0 port of this upgrade on a 3.0.39 container; POST of N form parameters plus a wrong checksum to /bigbluebutton/api/getMeetings): with the default, 990 parameters answer checksumError and 1200 answer HTTP 500; with this setting, 1200 and 9900 answer checksumError again.
|
I tested this PR on a 4.0 development environment built from source, at head 1. Startup livelock with the old systemd unit (high)I confirmed this problem with Grails 8.0.0 GA. If the new WAR runs with the old unit line
Who has this risk: Recommendations:
2. Tomcat parameter limit (low)The line Above 10000 parameters, Tomcat 11 returns HTML 500. Grails 7 with Tomcat 10.1 ignored the extra parameters and returned an API response. I recommend a test with more than 1000 parameters. 3. Jackson
|
| Response | Grails 7 | This PR |
|---|---|---|
| 404 body for an unknown URL | XML (<Map>...) |
JSON |
| CORS preflight, CORS not configured | 403 | 200, without Access-Control-* headers |
Vary: Origin |
On all responses | Not sent |
| Form POST larger than 2 MB, direct to 8090 | API error (malformedXml) |
HTML 500 |
With the CORS configuration in cluster-proxy.md, the results are correct. An allowed origin gets the CORS headers, and a different origin gets 403.
5. Security headers and frames
The results agree with the PR description:
- The four headers occur on API responses, on the
joinredirect and on 404 responses. - In Chromium, Firefox and WebKit, the client loads when an LMS page on a different origin puts the
joinURL in a frame. - In the same three browsers,
/apiin a frame is blocked. - A failed
joinin a frame goes to the error page, and the error page shows. grails.security.headers.frame-options.enabled=falseremoves onlyX-Frame-Options.grails.security.headers.enabled=falseremoves all four headers.
A note about the new test: the net::ERR_BLOCKED_BY_RESPONSE assertion is correct only in Chromium. In Firefox, route.continue({ url }) changes the page URL, so the page.url() check would fail.
6. Other checks (no problem found)
- Presentation uploads of 5.3 MB, 12 MB and 28 MB are successful. The 12 MB file is larger than the 10 MB default request limit of Boot. A 31 MB upload gets the correct 413.
putRecordingTextTrackaccepts the multipart file.getJoinUrlkeeps the parameter order.- The pres-checker exit codes are the same as before (valid file 0, all slides hidden 2). The log4j provider error does not occur. Each run takes approximately 230 ms more.
- The
/etc/bigbluebutton/bbb-web.propertiesoverlay operates.
7. Playwright e2e results
I used Chromium. The run did not include tests tagged @flaky, @need-update, @setting-required, @only-headed or @known-issue.
| Spec area | Result |
|---|---|
api |
11 passed |
learningdashboard |
8 passed |
presentation |
22 passed, 1 failed |
recording |
13 passed |
parameters |
96 passed |
breakout (client settings override) |
1 passed |
The total is 151 passed and 1 failed. The failed test is "Hide Presentation Toolbar", which is a screenshot comparison. It also fails on the Grails 7 build in the same container, so this PR does not cause it.
The two new tests fail on the Grails 7 build. They thus find the change correctly.
8. Problems that occur without this PR
getRecordingswithoffset> 0 returns an incorrecttotalElements. For example, with 3 recordings,offset=1returns 2. A largeoffsetreturns HTTP 500. Grails 7 gives the same results.rap-caption-inbox.rbreadsprops['presentation_dir'], butbigbluebutton.ymldoes not have this key. Thus the caption inbox service fails on 4.0.
The script replaces /usr/share/bbb-web with a fresh build and restarts the service, but leaves the systemd unit alone. A server that still has the unit of a Grails 7 package launches the exploded war with -cp WEB-INF/lib/*:/:WEB-INF/classes/:., and with that classpath a Grails 8 bbb-web never finishes starting (b8e3c94): the main thread spins in the plugin discovery, port 8090 is never bound and nginx answers 502, with no error anywhere. Install the unit from build/packages-template/bbb-web when the installed one differs from it, as the package does, and refuse to start when the active unit still launches with the old classpath (an override under /etc/systemd/system that replaces ExecStart), telling the developer what to change. Checked on a 4.0 server with the Grails 8 package installed: the unit matches the template and the check passes; with a temporary drop-in that puts the old classpath back, the check reports the override and stops. Launching the Grails 8 build by hand with the old classpath reproduces the hang: after 90 s the port is unbound, the main thread is RUNNABLE in GrailsVersionUtils.isValidVersion under DefaultPluginDiscovery.loadDelayedPlugins and has used 89 s of CPU.
The test serves the LMS page through route.continue() pointed at the
server's front page, so that the document keeps the LMS origin while
Chromium's private network access check lets it frame a server on a
private address. In Firefox, route.continue() with another URL navigates
the page to that URL instead, so the first assertion ("the LMS page should
stay on its own origin") fails, and the X-Frame-Options check that follows
would compare same-origin frames. The refusal is also asserted through
Chromium's net::ERR_BLOCKED_BY_RESPONSE. Skip the test outside Chromium;
CI runs the Firefox project only with the "test Firefox" label.
Measured on a 4.0 server with Playwright 1.56 and Firefox 142: the test
fails at the origin assertion against the Grails 7 and Grails 8 builds
alike; with the skip, the other api tests pass in Firefox.
Spring Boot 4.1 lowered Tomcat's default limit on request parameters (query string plus form body) from 10000 to 1000, and Tomcat 11 answers a request over the limit with its own HTML 500 page, where Tomcat 10.1 dropped the extra parameters. d989c77 keeps the limit at 10000 in application.properties; this test pins it: a POST of 1200 form parameters to a checksummed getMeetings must be answered with SUCCESS. Measured on a 4.0 server with this branch: 990, 1200 and 9900 parameters are processed and 10100 get Tomcat's 500 page; the stock Grails 7 build processes 10100 too and ignores the extras.
20ff3e9 raised Jackson's maxStringLength on the shared JsonUtil.mapper from 20 MB to 100 MB so that a large clientSettingsOverride would still deserialize. No input of that size can reach the mapper in the bbb-web JVM: its only readers there are the messages akka-apps publishes on Redis; nginx rejects request bodies to /bigbluebutton above 1 MB with 413, Tomcat limits form posts to 2 MB, and bbb-web caps a clientSettingsOverrideJsonUrl response at maxClientSettingsOverrideJsonUrlPayloadSize (1024 KiB). The commit's reason, bbb-common-web moving off Jackson 2.13.5, no longer holds either: v4.0.x-develop ships Jackson 2.22.3 with the same 20 MB default, which this PR does not change. BbbWebApiGWApp.scala is back to its v4.0.x-develop content. Review follow-up on bigbluebutton#25466.
new-features.md names the four security headers but not the other differences an API client or an administrator can notice after the move to Grails 8 / Spring Boot 4.1. Add them under the headers section: the 404 body for a URL no API call handles is JSON instead of XML; without a CORS configuration a cross-origin preflight gets 200 without Access-Control-* headers instead of 403, and responses carry no Vary: Origin; more than 10000 parameters get Tomcat's 500 page where Tomcat 10.1 ignored the extras; a form POST above 2 MB sent directly to port 8090 gets a 500 page instead of an API error; and a systemd override that replaces ExecStart must launch with -cp ., because the old classpath makes a Grails 8 bbb-web hang at startup. Each measured on a 4.0 server against its stock Grails 7 build. Review follow-up on bigbluebutton#25466.
|
Thanks for the detailed run. Follow-ups, each verified on a 4.0 server (4.0.0-rc.5 with its stock Grails 7.0.12 bbb-web) against this branch built at 1. Startup hang with the old unit. Reproduced with 8.0.0 GA: launched by hand with
2. Parameter limit. New 3. Jackson 4. Response changes. Added to 5. Firefox. Confirmed with Playwright 1.56 / Firefox 142: the test fails at "the LMS page should stay on its own origin" because 6. 7. Same results here, thanks. 8. Both are independent of this PR and the same on Grails 7: |
✅ Automated tests have passed! |
|
@imdt-claudiop please review again. |
|
Re-review at head Fixes that I verified
Correction to my earlier comment My earlier comment said that New item (documentation, low) In Playwright e2e results at this head I used Chromium, without the
Verdict All the items from my earlier comment are fixed or documented. The documentation item above is the only open item from my side. I found no new problem in bbb-web. |
|
Verdict: approve. I tested heads One small item does not block the merge. In |
c369c97
into
bigbluebutton:v4.0.x-develop
The sentence naming the properties of the other three headers had ended up below the new "Other bbb-web response changes" list; it belongs right after the frame-options example it continues. Review follow-up on bigbluebutton#25466.
The sentence naming the properties of the other three headers had ended up below the new "Other bbb-web response changes" list; it belongs right after the frame-options example it continues. Review follow-up on bigbluebutton#25466. (cherry picked from commit 944c632)
…n Grails 8 new-features.md names the component versions but not the differences an API client or an administrator can notice after the move to Grails 8 / Spring Boot 4.1 on 3.0. Add them under the component list: the security headers Grails 8 can add and that 3.0 leaves off, and how to turn them on; the 404 body for a URL no API call handles is JSON instead of XML; without a CORS configuration a cross-origin preflight gets 200 without Access-Control-* headers instead of 403, and responses carry no Vary: Origin; more than 10000 parameters get Tomcat's 500 page where Tomcat 10.1 ignored the extras; a form POST above 2 MB sent directly to port 8090 gets a 500 page instead of an API error; bbb-web does not start while the old grails.controllers.upload.* keys are in application.properties; and a systemd override that replaces ExecStart must launch with -cp . . Measured on a 3.0.39 container against its stock Grails 7 build, except the 2 MB form post, measured on a 4.0 server for bigbluebutton#25466 (the same code on both lines). 3.0 counterpart of 4.0's 1987f08 and 5611945.
…y levels bbb-web on Grails 8.0.0 runs Spring Boot 4.1.1, so the WAR carries Hibernate Validator 9.1, Jakarta Validation 3.1, Spring Data Commons 4.1 and Jakarta Servlet 6.1. Compile bbb-common-web against the same levels, so an API this module uses that is gone from them fails the build rather than at runtime: - jakarta.validation-api 3.0.2 -> 3.1.1, hibernate-validator 8.0.1.Final -> 9.1.3.Final, spring-data-commons 3.5.12 -> 4.1.1, jakarta.servlet-api 6.0.0 -> 6.1.0 (provided), jakarta.annotation-api 2.1.1 -> 3.0.0 - drop org.glassfish:jakarta.el 4.0.2: Hibernate Validator 9 needs Jakarta EL 6, which tomcat-embed-el 11 provides - drop the javax.servlet-api 4.0.1 and the duplicate scala-xml 2.0.0 declarations; nothing uses the first, and scala-xml resolved to 2.2.0 The 3.0-only recordings-DB dependencies (postgresql, hibernate-core 5.6, flyway-core, HikariCP) are unchanged. Same change as the bbb-common-web part of 4.0's #25466; Dependencies.scala is now identical to 4.0's.
…5.1.3 / Gradle 9.8.0 Port of #25466 (4.0) to the 3.0 line: Grails 7.0.12 -> 8.0.0, Spring Boot 3.5.16 -> 4.1.1 (Spring Framework 7.0.9), Groovy 4.0.21 -> 5.1.3, Gradle wrapper 8.14.3 -> 9.8.0 (the Grails 8 Gradle plugin needs 9.7 or later), embedded Tomcat 10.1.59 -> 11.0.26. As on 4.0: - grails.controllers.upload.* -> spring.servlet.multipart.* with the same limits. Grails 8 refuses to start while the old keys are set in application.properties. - asset-pipeline moved to cloud.wondrify 5.2.0; Gradle 9 property assignment syntax; layout.buildDirectory. - Tomcat 11.0.26 through ext['tomcat.version'] (Boot 4.1.1 manages 11.0.24, which lacks the fixes 10.1.59 has); the tomcat-embed 10.1 pins go. - Jakarta EE 11 validation stack: jakarta.validation-api 3.1.1, Hibernate Validator 9.1.3.Final, EL from tomcat-embed-el. - reactor-core follows the Boot BOM (3.8.7). Grails 8 applies the BOM as a platform, so a lower direct version cannot hold. - The Boot-3.5-line version overrides go. spring-framework.version and spring-data-bom.version would hold Spring 6 jars under Boot 4, and jackson-bom.version now names the Jackson 3 BOM; the others equal what Boot 4.1.1 / grails-bom 8.0.0 manage. - ApiController: Groovy 5 removed org.codehaus.groovy.util.ListHashMap; getJoinUrl builds its parameters in a LinkedHashMap. ListHashMap fell back to hash order past three entries, so the URL getJoinUrl returns now lists its parameters in insertion order (fullName, meetingID, role, ...). The checksum is computed over the same string, so the URL stays valid. Specific to 3.0: - Lettuce 7.7.0 (the release 4.0's bbb-web runs) via ext['lettuce.version']; bbb-common-message still declares 6.1.5 for the akka apps. Lettuce 6.6, which bbb-web ran on Grails 7, never had a release after 6.6.0, and the 6.x line ended with 6.8.2 in December 2025. Netty follows Lettuce to 4.2.17. - Flyway held at 11.7.2. It reaches the WAR only through bbb-common-web's unused recordings-DB code, and Flyway 12 depends on Jackson 3. With Jackson 3 on the classpath Spring 7 renders JSON with it: Boot's JSON error bodies then carry ISO timestamps instead of epoch milliseconds. - protobuf-java: the dependencySubstitution to 3.25.5 becomes a minimum (constraints, as on 4.0). The closure-compiler that asset-pipeline 5.2.0 runs needs protobuf 4.x, and forcing 3.25.5 failed assetCompile with NoSuchMethodError. protobuf is on the asset and test classpaths only. Checked on a 3.0.39 container against a build of the same base commit on Grails 7: no library in the WAR goes down a version; bbb-web starts in about 4 s and connects to Redis; the Spock tests give the same 65 results (0 failed, 8 skipped); unauthenticated responses differ only as on 4.0 (no Vary headers while CORS is not configured, CORS preflight 200 instead of 403, JSON instead of XML 404 bodies for unmapped URLs); checksummed create/join/getMeetingInfo/insertDocument/recording calls, session cookies, join redirects and malformed or DOCTYPE XML bodies answer the same. Playwright api, presentation, parameters, learningdashboard, recording and sharednotes (183 tests): 179 with the same status on both builds; the three that differ are known to be flaky here (the CAMERAS_ONLY layout race, a @flaky external video test, and "After Uploading large presentation", which failed 4 of 4 repeats on both builds). A 5.3 MB PDF uploads and converts through the client on both.
e9d0534 registered a disabled HiddenHttpMethodFilter in resources.groovy. On Grails 7 that was the way to turn the filter off: Grails registered it unconditionally, and a bean with the same name replaced it. Since #25466 bbb-web runs on Grails 8, whose auto configuration registers the filter only when grails.web.hiddenmethod.filter.enabled or spring.mvc.hiddenmethod.filter.enabled is true, and both default to false (apache/grails-core#16149). The bean now disables a filter that is never registered. The registration and its two imports go, and application.properties sets grails.web.hiddenmethod.filter.enabled=false, so the filter stays off by configuration rather than by a framework default. Grails 8 still resolves a _method parameter on POST requests to PUT, PATCH or DELETE in the dispatcher; bbb-web maps none of those methods, so such a request falls through to the index action like any other unmapped one. This must not be merged into a line that is still on Grails 7, where the bean is what keeps the filter off. Part of #26002.
The build image moved to Gradle 9.8.1 in #26145, but bbb-web and pres-checker build through bigbluebutton-web/gradlew (bbb-web since the Grails 7 build scripts, 7bfa37d; pres-checker since cb8ff5c in #25466), so the image's Gradle is not what builds the bbb-web package: the wrapper still fetched 9.8.0. This moves the wrapper to the version the image has. Generated with `./gradlew wrapper --gradle-version 9.8.1`, run twice in bigbluebutton/bbb-build:v4.0.x-release--2026-10-21-124037, so the wrapper jar and gradlew / gradlew.bat are the ones Gradle 9.8.1 writes. They were last regenerated in e0a92dd; the later bumps only edited distributionUrl. The jar matches Gradle's published gradle-9.8.1-wrapper.jar.sha256. gradleWrapperVersion in gradle.properties follows. 4.0 had the same wrapper files as 3.0 and the regenerated ones are byte-identical to the 3.0 commit's, so this is that commit picked. Built the bbb-web package in that image with build/setup-inside-docker.sh, from this commit and from v4.0.x-develop 8f1d9ef (wrapper 9.8.0). Both packages hold the same 792 files and 786 are byte-identical, among them all 246 third-party jars in WEB-INF/lib, WEB-INF/classes and the 16 prescheck jars. The other 6 differ only in build timestamps and the per-build bbb-common-message / bbb-common-web snapshot version. (cherry picked from commit 97c4df4)
* docs: doc sync for 4.0 since 4.0.0-rc.5 Range v4.0.0-rc.5..v4.0.x-develop 0f90159 (52 commits). No changes to bigbluebutton.properties, settings.yml, akka-apps application.conf, ApiParams, the create/join tables, resources.xml or bbb-conf. The Grails 8 upgrade (#25466) brought its own docs; its "Upgraded components" list was checked against the Spring Boot 4.1.1 and Grails 8.0.0 BOMs and the build files (Spring Framework 7.0.9, Groovy 5.1.3, Tomcat 11.0.26, Gradle 9.8.0). administration/customize.md, "Configuration of gladia.io": - #26010 moved bbb-transcription-controller from v0.2.10 to v0.4.0, which talks to Gladia's v2 live API and reads the key from gladia.key (gladia-proxy.js); nothing reads x_gladia_key in gladia.startMessage any more, so the documented command left the server without a key. Set gladia.key instead, and drop the "3.0 or higher, use >0.3.x" paragraph and its startMessage (bit_depth and endpointing are now gladia.bitDepth and gladia.endpointing). Mention the translation options. - Warn that the package's after-install.sh copies default.example.yml over default.yml on every install and upgrade, and every BigBlueButton upgrade reinstalls the package (its version comes from bigbluebutton-release). That removes the key and the ESL password bbb-conf --setip writes, and the service then crash-loops with "FSESL connection authentication error". - Say up front which service applies: 4.0 defaults to the LiveKit audio bridge, where bbb-livekit-stt (not packaged; uv or Docker) does the work; bbb-transcription-controller forks audio from FreeSWITCH and only covers audioBridge=bbb-webrtc-sfu. The client settings (audioCaptions enabled, provider gladia) apply to both: bbb-livekit-stt starts on the speech-locale event that carries the provider. new-features.md: - "bbb-transcription-controller 0.4.0 (Gladia v2)" under Other notable changes, as the upgrade note for the above (rc.1 to rc.5 shipped v0.2.10). - "Learning Dashboard: polls and quizzes numbered in the order they were asked" (#25988): untitled polls are numbered chronologically, the header tooltip shows when they were asked, and the Download Session Data CSV uses the same order. Not documented: the UI fixes (#25942, #25993, #25974), the recording panzoom fix (#25991), the bbb-ui-components-react and MUI bumps, the pres-checker build cleanup, the Tomcat parameter limit and upload limits (moved to Spring Boot keys in bbb-web's application.properties with the same values), and the Jackson string limit (raised and dropped again). (cherry picked from commit bcaed58) * docs: iteration doc sync for 4.0.1 Documents the v4.0.0..v4.0.x-develop (cd89568) delta that the per-PR docs commits in the range did not cover. new-features.md - Usability: "Live captions transcribed on the user's device" for public.app.audioCaptions.speechProcessing (#26179) - Dedicated Audio settings tab: the processing pick is now scoped to the browser session and the meeting, public.app.audioFilterStorage (#25744) - Behind the scenes: fewer video-grid re-renders (#26096), lock settings changes without reconnecting viewers (#26004), client modals on BBBModal (#25829), bbb-web Grails 2 cleanup (#26002) - Media: "Last-N audio for the LiveKit bridge (experimental)" (#26211) - Other notable changes: component versions in 4.0.1 (LiveKit stack #25912, bbb-webrtc-recorder 0.18.0, bbb-webrtc-sfu 2.25.0-beta.3, bbb-playback 5.4.8, Tomcat 11.0.27 #26241, Gradle 9.8.1 #26259, FreeSWITCH rtp-port-usage-robustness, livekit-sip rtp_port default), minimum Safari 14.1 (WeakRef, #25912), password-protected Redis for bbb-graphql-actions (#26110) - Upgraded components list: Gradle 9.8.1, Tomcat 11.0.27 - Recent releases: 4.0.1 (the tag does not exist yet) - Client settings / Added: speechProcessing, audioFilterStorage, public.chat.announceUserAwayStatusInChat (#26090), public.media.livekit.selectiveSubscription.lastN; the existing paginationToggleModeratorOnly bullet is tagged 4.0.1 customize.md - speechProcessing was added in 4.0.1, not 4.0 - Advanced Filtering: paragraph on audioFilterStorage - Audio: new section "Play only the most relevant microphones (Last-N)" api.md - New "Updated in 4.0.1" block. The userdata-bbb_parent_room_moderator removal (#26087) moves there from the 4.0 block: it landed after v4.0.0. Left out on purpose: fixes (#26269, #26250, #26118, #26085, #26212 and the rest), the presenter authorization change (#25887), test/CI work and dependency bumps belong in the release notes, not in the docs. akka-apps application.conf, ApiParams.java and LockSettingsParams.java did not change in the range. * docs: keep the 4.0.1 join note in the 4.0 block, drop four sections api.md - userdata-bbb_parent_room_moderator stays in the 4.0 "Removed parameters" line, marked "removed in 4.0.1", instead of a separate "Updated in 4.0.1" block. new-features.md - Drop the 4.0.1 "Behind the scenes" subsections (video-grid re-renders, lock settings without reconnects, BBBModal, bbb-web cleanup): release-notes material, not documentation. - Drop "Learning Dashboard: polls and quizzes numbered in the order they were asked", carried over from the rc.5 sync. * docs: drop the "Other notable changes" entries added for 4.0.1 new-features.md - Drop "Component versions in 4.0.1", "Minimum Safari version is 14.1", "Password-protected Redis for bbb-graphql-actions" and the "bbb-transcription-controller 0.4.0 (Gladia v2)" note carried over from the rc.5 sync. The Safari floor and the Redis password are already documented on their own pages; the version bumps belong in the release notes. * docs: drop the customize.md changes from the 4.0.1 sync customize.md - Back to its v4.0.x-develop content: no Last-N section, no audioFilterStorage paragraph, speechProcessing stays "added in 4.0", and the Gladia v2 edits from the rc.5 sync cherry-pick are gone too. new-features.md - The Last-N section no longer links to the dropped customize.md section; the client-settings bullet still links to it.



WIP: Upgrade bbb-web stack to Grails 8.0.0 / Spring Boot 4.1.1
Part of #25449
Status
bigbluebutton-webon Grails 8.0.0 / Spring Boot 4.1.1 / Groovy 5.1.3 / Gradle wrapper 9.8.0 (Java 21 was already the baseline)tomcat-embed-el)ext['tomcat.version']override: Boot 4.1.1 manages 11.0.24, which lacks the fixesv4.0.x-developtakes via its 10.1.59 pin (see "RC2 revisit" below)cloud.wondrify:asset-pipeline-gradle:5.2.0(the version the 8.0.0 BOM manages; on Maven Central)url =/version =/group =,layout.buildDirectory)bbb-common-webdependency uplift (spring-data-commons 4.1.1, HV 9.1.3.Final, servlet-api 6.1.0, annotation-api 3.0.0; removed deadjavax.servlet-apiandorg.glassfish:jakarta.el)v4.0.x-developback in. Two of this PR's changes had landed upstream independently and are no longer part of the diff: the Lettuce 7withPassword(char[])fix (upstream added it with conditional credentials) and the Jackson bump (upstream is on 2.21.x/2.22.x across modules)v4.0.x-developagain (245 commits; only conflict was the CI image line) and moved M6 -> RC1 (published the same day). Two RC1 changes needed real work, see "RC1 migration notes" below: the multipart upload limits moved tospring.servlet.multipart.*(the old keys now abort startup), and the RC1 Grails Gradle plugin needs Gradle 9.7 (wrapper 9.6.0 -> 9.7.1)v4.0.x-developagain (123 commits, including the 4.0.0-rc.4 forward-port and the 2026-10-01 dependency audit) and moved RC1 -> RC2 (tagged 2026-09-29). The only conflict wasbigbluebutton-web/build.gradle; details in "RC2 revisit" belowv4.0.x-developwas not merged this time (the branch is 51 commits behind and merges cleanly), so the comparison in that section isolates the Grails changev4.0.x-developagain (157 commits, among them Node.js 24, the Etherpad removal, the /enter leftovers cleanup, the soft-mask conversion fixes and the 2026-10-06 dependency audit; only conflict was the CI image line), moved CI to the regularv4.0.x-releaseimage, and dropped the TEMP staging repositories now that Grails 8.0.0 is on Maven Central. Details in "8.0.0 release (2026-10-08)" belowbbb-build:v4.0.x-release--2026-10-08-103605image (Gradle 9.8.0, Grails 8.0.0 CLI, Node.js 24.20.0, Go 1.27.0) — 8.0.0 resolves from Maven Central, WAR assembles, .deb producedpostgresql/httpclient5/httpcore5/selenium/opentelemetrydo not ship in the WAR at allv4.0.x-develophave identical bbb-web, bbb-common-* and akka-apps sources, so its packaged Grails 7.0.12 bbb-web is an exact baseline): the Playwright suitesapi,presentation,parameters,learningdashboardandrecording(168 tests) gave 150 passed, 13 failed, 5 skipped on the stock build, on the merged branch, and again after the staging repositories were dropped — all 167 executed tests have the same status in all three runs, and every failure has the same first error. The 13 failures fail on the stock build too, and 11 of them are tagged@flaky,@need-updateor@setting-required, so CI does not run them (seven external-video tests, two screenshot comparisons, Select Slide, and "Masked slide is rasterized", which needsmaskTagThreshold> 0). The other two, Hide Presentation Toolbar (screenshot comparison) and "Generate a recording that captures microphone audio", are in the CI selection and pass there; on that server they fail on Grails 7 and Grails 8 alike. Also checked on each build: a 5.3 MB upload through the client (117 pages), joining through a cross-origin iframe, the response headers, and bbb-web's Spock tests (68 run, 0 failed, 11 skipped, the same as onv4.0.x-develop)/api, checksummedcreate->join->getMeetings->end, a 5.3 MB presentation upload through the client (GeoTopo.pdf, 117 pages), joining through a cross-origin iframe, and the Playwright suitesapiandpresentation: 32 passed, 7 failed, 3test.fixmeon both builds, with per-test status and failure message identical for all 42 tests (Hide Presentation Toolbar, Select Slide, Upload Other Presentations Format, the three@flakyexternal-video tests, and "Masked slide is rasterized", which needsmaskTagThreshold> 0 where the container has 0).learningdashboardandparameterswere not re-run for 8.0.0/etc/bigbluebutton/bbb-web.propertiesoverlay, plain/api, checksummedcreate->join->getMeetings->end, a 5.3 MB presentation upload through the client (GeoTopo.pdf, 117 pages converted — above Boot's default 1 MB per-file limit), joining through a cross-origin iframe, plus the Playwright suitesapiandpresentation: 31 passed, 8 failed, 3test.fixme. The same two suites were run against the RC1 package on the same container the same day, immediately before the swap: per-test status and failure message are identical for all 42 tests (screenshot drift in Hide Presentation Toolbar / Select Slide / Upload Other Presentations Format, the three@flakyexternal-video tests, Share Camera As Content, and "Masked slide is rasterized", which needsmaskTagThreshold> 0 where the container has 0).learningdashboardandparameterswere not re-run for RC2/etc/bigbluebutton/bbb-web.propertiesoverlay, plain/api, checksummedcreate->getMeetingInfo->endround-trip (bbb-web <-> akka-apps), a 5.3 MB presentation upload through the client, plus the Playwright suitesapi(9 passed, 3test.fixme),learningdashboard(7/7),presentation(24/31) andparameters(99/107, 4 skipped). Every one of the 11 failures reproduced with the identical assertion on the pre-upgrade Grails 7.0.12 package swapped back into the same containerbuild.gradle; with an empty Gradle cache every configuration resolves frommavenCentral()/repo.grails.orgbbb-build:v4.0.x-release--2026-10-08-103605image, which now carries Gradle 9.8.0 and the Grails 8.0.0 CLI; the TEMPgrails-8--…image is no longer used@ciPlaywright tests and documented innew-features.md; reasoning in "Security headers (new in RC2)" belowserver.tomcat.max-parameter-countto 1000, and Tomcat 11 answers a request with more parameters with HTTP 500 instead of dropping the extras (measured 2026-10-08, see "What does this PR do?")deploy_to_usr_share.shinstalls the packaged unit and refuses the old classpath,joinInsideCrossOriginFrameruns in Chromium only, a new@citest sends 1200 parameters, the raised Jackson string limit is dropped, andnew-features.mdlists the other response changes. Details in "Review follow-up (2026-10-13)" belowfcb38e33f5: all 30 checks passed, including the eightinstall-and-run-bbb-testsshards (the whole@ciselection, run against the packages built from this branch), the legacy media tests and the plugin tests. On22e7028bb0(the two header tests, the docs section, the frame-test fix for Chromium's private network access check, README paths): 29 passed, 1 skipped, andinstall-and-run-legacy-media-testsfailed on the legacy-media recording tests from fix(recording): restore presentation panzoom after screenshare stops #25991, unrelated to this PR; both new tests passedPresentationController.extractQueryParam(UriComponentsBuilder.fromUriString, used to readpageTokenfrom nginx'sx-original-uri): unchanged by this PR. The RFC 3986 parser has been the default forfromUriStringsince Spring Framework 6.2, whichv4.0.x-developalready ships (6.2.19); Spring Framework 7 only removed the deprecatedfromHttpUrl, which bbb-web does not use. Checked by running the same 39 URIs (normal slide/thumbnail/png requests, missing/empty/duplicatepageToken, raw|,^,{},[],\, backtick,"and spaces in the query, valid and invalid percent-escapes, encoded&/=/#, odd paths, absolute-form targets) through spring-web 6.2.19 and 7.0.9: identical results, and none throwsbindable: falsealways honored, deny-by-default opt-in) — bbb-web has no domain classes, command objects orValidateableclasses and its actions readparamsdirectly; i18n on Spring Boot'sMessageSource— nothing in bbb-web or bbb-common-web resolves messages (the bundledgrails-app/i18n/messages*.propertiesare Grails' default constraint messages, unused); statically compiled GSPs — bbb-web ships no GSP views or taglibs (the tworender(view: …)references,upload-fileand the500→/errormapping, point at views that do not exist on Grails 7 either); DOCTYPE rejection in XML request bodies — bbb-web parsescreate/insertDocumentbodies and recordingmetadata.xmlwithnew XmlSlurper(), not Grails' XML converters, andXmlSlurperalready rejects DOCTYPE by default: a normal create body, a plain<!DOCTYPE>, an external-entity (XXE) body, a billion-laughs body and a recordingmetadata.xmlgive identical results on groovy-xml 4.0.32 (v4.0.x-develop) and 5.1.3 (this PR) — the two well-formed documents parse, the three with a DOCTYPE are rejectedWhat does this PR do?
Upgrades the bbb-web stack off the EOL Spring Boot 3.5 line:
tomcat.versionoverride; Boot 4.1.1 manages 11.0.24; Servlet 6.1)bigbluebutton-webgradle.properties/ gradle wrapper: version bumps above. Plugin IDs (org.apache.grails.gradle.grails-web,grails-gsp,grails-gson) are unchanged from M4 through 8.0.0.build.gradle:tomcat-embed-*pins and the Boot-3.5-lineext['*.version']overrides — Boot 4.1.1 manages Netty 4.2.17 / Lettuce 7.7.0 / Logback 1.6.3 / reactor-core 3.8.7, and Jackson resolves to 2.22.3, all at or above what upstream pins (verified in the packaged WAR). The one override left isext['tomcat.version'] = '11.0.26'. Upstream's pins that do not depend on the Boot line are kept as merged: freemarker 2.3.35, strict junrar 7.6.1, the ivy 2.6.0 force and the ant 1.10.18 force on the build classpath.jakarta.validation-api:3.1.1,hibernate-validator:9.1.3.Final. Droppedorg.glassfish:jakarta.el— Boot 4 manages no standalone EL artifact; the EL impl comes fromtomcat-embed-el(pulled byspring-boot-starter-tomcat).com.bertramlabs.plugins→cloud.wondrify(the project moved; 5.2.0 is what the 8.0.0 BOM manages), plugin idcloud.wondrify.asset-pipeline.url =/version =/group =assignments,layout.buildDirectoryinstead of the removedproject.buildDir.grails-app/conf/application.properties: upload limits moved fromgrails.controllers.upload.maxFileSize/maxRequestSizetospring.servlet.multipart.max-file-size/max-request-size(same values). See "RC1 migration notes".grails-app/conf/application.properties:server.tomcat.max-parameter-count=10000. Spring Boot 4.1 lowered the default from 10000 to 1000, and Tomcat 11 rejects a request with more parameters (query string plus form body) withInvalidParameterExceptionand its own HTML 500 page, where Tomcat 10.1 dropped the extras. Without the setting acreatewith manymeta_parameters, or ajoinwith manyuserdata-parameters, would fail. Measured on the same Boot 4.1.1 / Tomcat 11.0.26 stack: with the default, 990 form parameters togetMeetingsanswerchecksumErrorand 1200 answer HTTP 500; with the setting, 1200 and 9900 answerchecksumError.ApiController.groovy: replaced Groovy-internalorg.codehaus.groovy.util.ListHashMap(removed in Groovy 5) withjava.util.LinkedHashMapingetJoinUrl.ListHashMapfell back to hash order past three entries, so the URLgetJoinUrlreturns now lists its parameters in insertion order. Measured through a client join with threeuserdata-parameters andenforceLayout: Grails 7 emitsredirect,existingUserID,userdata-gamma,role,userdata-beta,fullName,meetingID,userdata-alpha,enforceLayout,checksum, this branchfullName,meetingID,role,redirect,existingUserID,userdata-alpha,userdata-beta,userdata-gamma,enforceLayout,checksum. The checksum is computed over the emitted string, so the URL stays valid.deploy_to_usr_share.sh(dev deploy of a fresh build into/usr/share/bbb-web): installsbuild/packages-template/bbb-web/bbb-web.servicewhen the installed unit differs from it, and refuses to start when the active unit still launches with the old classpath (an override under/etc/systemd/system), because a Grails 8 bbb-web never finishes starting that way (see "Review follow-up (2026-10-13)").bbb-common-web(consumed as a jar by bbb-web; must be classpath-compatible with Spring Framework 7 / Jakarta EE 11)spring-data-commons3.5.12 → 4.1.1 (the line Boot 4.1's spring-data BOM manages; thePage/Pageable/PageImplsurface we use is unchanged).hibernate-validator8 → 9.1.3.Final,jakarta.validation-api3.0.2 → 3.1.1,jakarta.servlet-api6.0.0 → 6.1.0 (provided),jakarta.annotation-api2.1.1 → 3.0.0.javax.servlet-api:4.0.1(no source importsjavax.servletanymore — it only leaked into the published POM),org.glassfish:jakarta.el:4.0.2(EL 4.0 API+impl clashes with Tomcat 11's EL 6.0), duplicatescala-xml 2.0.0declaration (2.2.0 wins anyway).BbbWebApiGWApp: no longer touched. The raised JacksonStreamReadConstraints(100 MB max string) of an earlier revision is dropped: the only readers of the shared mapper in the bbb-web JVM are the messages akka-apps publishes on Redis, request bodies are capped by nginx (1 MB on/bigbluebutton) and Tomcat (2 MB form posts), and aclientSettingsOverrideJsonUrlresponse bymaxClientSettingsOverrideJsonUrlPayloadSize(1024 KiB), so no input can reach Jackson's 20 MB default, whichv4.0.x-develop(Jackson 2.22.3) has today.Tests (
bigbluebutton-tests/playwright/api/, all tagged@ci)bbbWebSecurityHeaders: a document (GET /api), thejoinredirect and a 404 from bbb-web all carry the four security headers Grails 8 adds.joinInsideCrossOriginFrame: a made-up LMS page on another origin (served throughpage.route, no extra server) frames thejoinURL and bbb-web's/api; the client must load inside the frame, and the/apiXML must be refused. Chromium only: in Firefox,route.continue()with another URL navigates the page to that URL, so the LMS page would not keep its origin (measured with Playwright 1.56 / Firefox 142). CI runs Firefox only with the "test Firefox" label.overAThousandRequestParameters: a checksummedgetMeetingsPOST with 1200 form parameters is answered withSUCCESS(Tomcat's parameter limit, seeserver.tomcat.max-parameter-countabove).Docs
new-features.md: "Upgraded components" lists Grails 8.0.0, Gradle 9.8.0, Groovy 5.1.3, Spring Framework 7.0.9, Spring Boot 4.1.1 and Tomcat 11.0.26; new section "Security response headers from bbb-web" (what changes, that joining from an LMS frame is not affected, how to turn a header off); new section "Other bbb-web response changes on Grails 8" (JSON 404 bodies, CORS preflight andVarywithout a CORS configuration, the 10000-parameter limit, form posts above 2 MB sent directly to port 8090, andsystemdoverrides ofExecStart, which must launch with-cp .).development/dev-guide.md:sdk install gradle 9.8.0, and no system-wide Grails install any more (the Gradle wrapper provisions it).bigbluebutton-web/README.md: build steps for the wrapper-based build, run from the repository root.bbb-common-messagewithPassword(char[])fix landed onv4.0.x-developindependently (with credentials only sent when configured), superseding the earlier commits here.Security headers (new in RC2)
Grails now adds browser-hardening headers to every response by default (apache/grails-core#15967), so every bbb-web response gains:
X-Frame-Options: SAMEORIGINX-Content-Type-Options: nosniffReferrer-Policy: strict-origin-when-cross-originX-XSS-Protection: 0What that means in practice, measured on the same container before (RC1 build) and after (RC2 build), with a parent page on another origin doing the framing:
joincall answers 302, and the framed document is the client served by nginx, which carries no such header. (The test meeting was created withallowRequestsWithoutSession=true; without it the framed client ends in "Session has ended" on the RC1 build too.)/bigbluebutton/api) was displayed inside a cross-origin frame on RC1 and is now refused by the browser on RC2.grails.security.headers.frame-options.enabled=falsein/etc/bigbluebutton/bbb-web.propertiesturns that header off (tested:X-Frame-Optionsdisappears, the other three stay).grails.security.headers.enabled=falseturns all four off (tested on a Grails 8 bbb-web on 2026-10-08).Unchanged in 8.0.0: the 8.0.0 build sends the same four headers on every response and gives the same iframe results.
Decision (2026-10-08): keep the Grails defaults. In BigBlueButton the headers only travel with responses bbb-web sends itself: API responses, error responses, the
joinredirect and presentation downloads (sent as attachments, never shown in a frame). Everything a participant sees is served by nginx without them: the client, slides, thumbnails, annotated PDFs, the learning dashboard and recordings. Neither nginx norbbb-installsets any of these headers, so they are never sent twice. Browsers do not frame-check a redirect, so LMS embedding keeps working; in the cluster-proxy setup the client reaches bbb-web withfetchand image requests, not frames.X-Content-Type-Optionshas no visible effect because bbb-web declares the content type of what it sends and serves no scripts or stylesheets,strict-origin-when-cross-originis already the browsers' default referrer policy, andX-XSS-Protection: 0switches off a filter no current browser has. The one observable change is that bbb-web's own pages cannot be framed by another site, and we found no BigBlueButton feature or integration that does that. The gain is modest too (bbb-web serves no interactive pages to clickjack), but keeping the framework defaults costs nothing measurable and leaves no extra configuration to carry. A site that needs the old behaviour sets one property per header in/etc/bigbluebutton/bbb-web.properties(grails.security.headers.<frame-options|content-type-options|referrer-policy|xss-protection>.enabled=false, orgrails.security.headers.enabled=falsefor all four; each checked on a Grails 8 bbb-web), which survives package upgrades. The two@citests above pin the decision, andnew-features.mdtells administrators about it.Separate from the headers: joining inside a frame on another site needs the meeting to be created with
allowRequestsWithoutSession=true(or the session cookie set toSameSite=None, as the cluster-proxy guide describes), because browsers do not send bbb-web's session cookie from such a frame. Checked on a 4.0.0-rc.5 server with its stock Grails 7 bbb-web and with this branch: with the parameter the framed client, its slides and/api/stunsload on both; without it the framed client ends on "Session has ended" on both.Review follow-up (2026-10-13)
Follow-ups to the test report in the PR comments. Everything below was measured on a 4.0 server (4.0.0-rc.5, stock Grails 7.0.12 bbb-web) against this branch built at
d989c772b8on thev4.0.x-release--2026-10-08-103605image and installed as a package.-cp WEB-INF/lib/*:/:WEB-INF/classes/:.on a spare port, after 90 s the port is unbound, the process has used 96 CPU-seconds and themainthread is RUNNABLE inGrailsVersionUtils.isValidVersionunderDefaultPluginDiscovery.isDependentOn/loadDelayedPlugins/populatePlugins, called fromGrailsEnvironmentPostProcessor; the log never gets past logback's own initialisation.deploy_to_usr_share.shnow installs the packaged unit and refuses the old classpath (both paths checked on the server, the second with a temporary drop-in that put the old classpath back);new-features.mdtells administrators with anExecStartoverride to switch to-cp .. An upstream report with the thread dump is prepared.@citestoverAThousandRequestParameters. Measured: 990, 1200 and 9900 form parameters are processed and 10100 get Tomcat's HTML 500 page on this branch; the Grails 7 build processes 10100 and drops the extras.maxStringLength(item 3). Dropped, seebbb-common-webabove.new-features.md. The 3 MB form POST sent directly to port 8090 answerschecksumErroron Grails 7 and Tomcat's 500 page on this branch; through nginx both answer 413 (client_max_body_size1 MB on/bigbluebutton).route.continue()with another URL navigates the page there. The test is now Chromium only; the other api tests pass in Firefox.getJoinUrlparameter order (item 6). The report says the order is kept; measured through a client join it changes from hash order to insertion order (sequences underApiController.groovyabove). The checksum is computed over the emitted string, so the URL stays valid.getRecordingstotalElementswithoffset,rap-caption-inbox.rbreadingprops['presentation_dir'], whichbigbluebutton.ymldoes not define) exist on Grails 7 as well and are not part of this PR.8.0.0 release (2026-10-08)
grails-coreandgrails-gradle-pluginscompared). Gradle 9.8.0 is what thev8.0.0tag pins everywhere (wrappers,.sdkmanrc, Forge template), so the wrapper stays on it.repository.apache.org/content/groups/stagingentries are gone frombuild.gradle. ResolvingruntimeClasspath,testRuntimeClasspath,profileand the buildscript classpath with an empty Gradle cache succeeds frommavenCentral()/repo.grails.org. The package built that way has the same 246 third-party jars, byte for byte, as the one built with staging still listed.v4.0.x-releasebuild image line now carries Gradle 9.8.0 and the Grails 8.0.0 CLI next to the toolchainv4.0.x-developbuilds with, so this branch is back on that line (v4.0.x-release--2026-10-08-103605).fcb38e33f5: the package builds, the eightinstall-and-run-bbb-testsshards (every@citest not tagged@flaky,@need-update,@only-headed,@setting-requiredor@known-issue, run against the packages built from this branch, Grails 8 bbb-web included), the legacy media tests and the plugin tests (which had failed on earlier heads for a reason unrelated to this PR).v4.0.x-develop's bouncycastle 1.86 pins (strict constraints inbigbluebutton-web/build.gradle,dependencyOverridesinbbb-common-web/build.sbt) do not depend on the Spring Boot line and apply here too: the WAR carriesbc*-jdk18on-1.86.8.0.0 revisit (2026-10-04)
grails-*jars changed version. The branch diff for this step is version strings in four files.dataSourcebean (Register the default dataSource bean without dataSource configuration apache/grails-core#16458) is registered only with GORM for Hibernate, which bbb-web does not ship; the XML-safe GSP html codec default (Make the XML-safe HTML encoder the default for grails.views.gsp.htmlcodec apache/grails-core#16460) is what bbb-web already configures explicitly, and it has no GSPs; themessageSourcebasename ordering (Resolve configured messageSource basenames ahead of discovered bundles (#11795) apache/grails-core#14753) has nothing to act on, bbb-web looks up no messages through it.Vary: Origin,Vary: Access-Control-Request-MethodandVary: Access-Control-Request-Headersto every response and answered a CORS preflight with 403 "Invalid CORS request". Grails 8 sends noVaryheader and answers the preflight 200 without anyAccess-Control-*header. Neither grants cross-origin access.cluster-proxy.mddocuments it (-Dgrails.cors.enabled=true -Dgrails.cors.allowCredentials=true -Dgrails.cors.allowedOrigins=...through the systemd override), both builds answer identically:Access-Control-Allow-OriginplusAccess-Control-Allow-Credentials: truefor an allowed origin, 403 for any other origin, a correct preflight, and the same on thecheckGraphqlAuthorizationendpoint nginx calls. The cluster-proxy instructions need no change./bigbluebutton/nope, 404) changed from XML (<Map>...) to JSON. The API's own responses aretext/xmlon both.JSESSIONIDcookie attributes are identical.install-and-run-plugin-tests(sample-actions-bar-plugin, "should verify selector icon has correct class"), also fails on unrelated PRs (refactor(html5): drop the talking indicator's unused avatar color style #25956, build: move BBB 4.0 to Node.js 24 (Active LTS) #25733, chore(gql-middleware): log active subscriptions when the concurrent limit is reached #25909).build-package (bbb-web)and the eightinstall-and-run-bbb-testsshards passed on that head.RC2 revisit (2026-10-02)
v4.0.x-developrefreshed itsext['*.version']overrides andtomcat-embedpins on 2026-10-01. They target the Boot 3.5 line (Tomcat 10.1, Spring Framework 6.2, Spring Data 2025.0) and cannot be applied to Boot 4.1.1, so this branch keeps its side ofbuild.gradleand takes everything else from the audit.ext['tomcat.version'] = '11.0.26'movestomcat-embed-core/-el/-websockettogether. 11.0.26 rather than 11.0.25 because the 2026-09-15 release also fixes CVE-2026-86350, a request header mix-up regression affecting 11.0.22 through 11.0.25. To drop once the Boot version in use manages Tomcat 11.0.26 or later.grails.converters.JSONand JSON views, while bbb-web builds JSON withgroovy.json.JsonBuilderand ships no gson views; the link-resolution change (Resolve links to the most specific controller, namespace and URL mapping apache/grails-core#16272) has nothing to act on, bbb-web's only generated link is oneredirect(action:). The packaged library set is otherwise identical between the RC1 and RC2 builds (248 jars; only the Grails, Tomcat and audit-driven versions differ).RC1 migration notes (new since M6)
grails.controllers.upload.maxFileSize/maxRequestSizekeys are gone and an application that still sets them aborts at startup with a migration message. bbb-web now setsspring.servlet.multipart.max-file-size/max-request-sizeto the same values. Without an explicit setting Boot's defaults (1 MB per file, 10 MB per request) would silently cap presentation and caption uploads; BigBlueButton's own per-presentation cap (maxFileSizeUpload, enforced inParamsProcessorUtil) is unchanged.request.getFile()inPresentationController/RecordingControllerworks as before.gradlew assemblefails withNoSuchMethodError: GroovyCompileOptions.getConfigurationScriptFile()(return type changed toRegularFileProperty). Wrapper moved to 9.7.1 at the time (9.8.0 since RC2);dev-guide.mdfollows._methodrewrite moved out of the filter chain into the dispatcher and is off by default (grails.web.hiddenmethod.filter.enabled). bbb-web never used it; the disabledhiddenHttpMethodFilterregistration inresources.groovystill compiles (the class is still shipped and used by Grails' own auto-configuration) and stays inert, so it is left alone here and listed as a follow-up cleanup.create/insertDocumentbodies with its ownXmlSlurper;@Configurationclasses inresources.groovyare no longer processed (bbb-web's has none, onlyimportBeans); no interceptors, nograils.async, noGrailsWebRequest.getCurrentRequest()usage.Why?
Spring Boot 3.5 reached OSS end-of-life on 2026-06-30 (#25449). Spring Boot 4 requires Grails 8 (Spring Framework 7 / Jakarta EE 11 / Servlet 6.1). This PR tracked the Grails 8 pre-releases (M6, RC1, RC2) to surface and fix the real migration work early; the move to 8.0.0, whose BOM pins Spring Boot 4.1.1, was then a version-number change. Grails 8.0.0 was released on 2026-10-07 and is resolved from Maven Central.
Notable non-changes (checked, nothing to do):
server.servlet.session.cookie.secureis still a valid property in Boot 4.1 (verified in its config metadata) — no rename, Secure cookie flag intact.spring.main.allow-circular-references=trueis still supported (verified un-deprecated in Boot 4.1 metadata) — both bootRun andbbb-web.servicekeep working.org.springframework.boot.web.servlet.FilterRegistrationBean,org.grails.web.filters.HiddenHttpMethodFilter,grails.web.context.ServletContextHolder,org.grails.web.mime.DefaultMimeUtility,grails.boot.GrailsApp, and theconsole/profileGradle configurations all survive in Grails 8.0.0 —resources.groovyand friends need no changes.DataStorein bbb-common-web) no longer exists on v4.0.x-develop — recordings are file-based — so that whole phase disappeared.How to test
Package build (what CI does), on any docker host:
./build/setup.sh bbb-web— usesbbb-build:v4.0.x-release--2026-10-08-103605from.gitlab-ci.yml, builds bbb-common-message + bbb-common-web (sbt) and bigbluebutton-web (Gradle wrapper), producesartifacts/bbb-web_*.debWEB-INF/libcarriesgrails-*-8.0.0,groovy-5.1.3,spring-core-7.0.9,tomcat-embed-core-11.0.26,hibernate-validator-9.1.3.Final,lettuce-core-7.7.0.RELEASE,netty-*-4.2.17.Final,jackson-databind-2.22.3,logback-*-1.6.3,reactor-core-3.8.7;WEB-INF/classes/application.propertiescarriesspring.servlet.multipart.*and nograils.controllers.upload.*systemctl restart bbb-web(the postinst does not restart inside Docker), thencurl -i http://localhost:8090/bigbluebutton/api→SUCCESS, with the four headers listed under "Security headers (new in RC2)" in the response; checksummedcreate→getMeetingInfo→endallSUCCESS(validation, FreeMarker response path and akka-apps messaging intact); bad checksum →checksumErrorbigbluebutton-tests/playwright,BBB_URL=https://<host>/bigbluebutton/ BBB_SECRET=<secret> npx playwright test api/api.spec.ts -g "bbbWebSecurityHeaders|joinInsideCrossOriginFrame|overAThousandRequestParameters"bigbluebutton-tests/playwright/core/media/GeoTopo.pdf, 5.3 MB; the stockpresentationsuite only uploads smaller files) — proves the multipart limit migration; on Boot's defaults the upload would be rejectedchecksumto/bigbluebutton/api/getMeetings: the answer ischecksumError, not an HTTP 500 (Tomcat's parameter limit)Dev-container flow (unchanged):
cd bbb-common-message && sbt publish publishLocalcd bbb-common-web && sbt update publish publishLocal(order matters — bbb-common-web resolves bbb-common-message from the local repos)cd bigbluebutton-web && ./gradlew clean assemble→build/libs/bigbluebutton-0.10.0.war(name unchanged, packaging scripts unaffected)./gradlew bootRun --args='--server.port=8091'→Grails application running at http://localhost:8091curl http://localhost:8091/bigbluebutton/api→SUCCESS, with/etc/bigbluebutton/bbb-web.propertiesoverlay values present (grails.config.locationsstill works on Grails 8)