Skip to content

build: upgrade bbb-web stack to Grails 8.0.0 / Spring Boot 4.1.1 - #25466

Merged
antobinary merged 37 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:wip-upgrade-grails-core-and-spring-boot
Oct 14, 2026
Merged

antobinary merged 37 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:wip-upgrade-grails-core-and-spring-boot

Conversation

@antobinary

@antobinary antobinary commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

WIP: Upgrade bbb-web stack to Grails 8.0.0 / Spring Boot 4.1.1

Part of #25449

Status

  • bigbluebutton-web on Grails 8.0.0 / Spring Boot 4.1.1 / Groovy 5.1.3 / Gradle wrapper 9.8.0 (Java 21 was already the baseline)
  • Jakarta EE 11 validation stack (jakarta.validation-api 3.1.1, hibernate-validator 9.1.3.Final, EL via tomcat-embed-el)
  • Tomcat 11.0.26 (Servlet 6.1) through a single ext['tomcat.version'] override: Boot 4.1.1 manages 11.0.24, which lacks the fixes v4.0.x-develop takes via its 10.1.59 pin (see "RC2 revisit" below)
  • asset-pipeline on its new coordinates: cloud.wondrify:asset-pipeline-gradle:5.2.0 (the version the 8.0.0 BOM manages; on Maven Central)
  • Gradle 9 DSL fixes (url =/version =/group =, layout.buildDirectory)
  • bbb-common-web dependency uplift (spring-data-commons 4.1.1, HV 9.1.3.Final, servlet-api 6.1.0, annotation-api 3.0.0; removed dead javax.servlet-api and org.glassfish:jakarta.el)
  • 2026-08-28: merged v4.0.x-develop back in. Two of this PR's changes had landed upstream independently and are no longer part of the diff: the Lettuce 7 withPassword(char[]) fix (upstream added it with conditional credentials) and the Jackson bump (upstream is on 2.21.x/2.22.x across modules)
  • 2026-09-23: merged v4.0.x-develop again (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 to spring.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)
  • 2026-10-02: merged v4.0.x-develop again (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 was bigbluebutton-web/build.gradle; details in "RC2 revisit" below
  • 2026-10-04: moved RC2 -> 8.0.0 (tagged the same day). Version strings only; details in "8.0.0 revisit" below. v4.0.x-develop was not merged this time (the branch is 51 commits behind and merges cleanly), so the comparison in that section isolates the Grails change
  • 2026-10-08: merged v4.0.x-develop again (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 regular v4.0.x-release image, 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)" below
  • Packaging: full package build verified with the packaging scripts on the bbb-build:v4.0.x-release--2026-10-08-103605 image (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 produced
  • Re-verified 2026-10-02 against upstream's refreshed pins, on the resolved dependency graph and the built WAR: every pinned artifact resolves at or above its pin under Boot 4.1.1 management (netty 4.2.17.Final, lettuce 7.7.0.RELEASE, jackson 2.22.3, logback 1.6.3, httpclient5 5.6.4, httpcore5 5.4.3, ant 1.10.18, selenium 4.45.0, opentelemetry 1.63.0) except Tomcat, now overridden to 11.0.26. postgresql/httpclient5/httpcore5/selenium/opentelemetry do not ship in the WAR at all
  • Verified 2026-10-08 on a 4.0.0-rc.5 server (rc.5 and v4.0.x-develop have identical bbb-web, bbb-common-* and akka-apps sources, so its packaged Grails 7.0.12 bbb-web is an exact baseline): the Playwright suites api, presentation, parameters, learningdashboard and recording (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-update or @setting-required, so CI does not run them (seven external-video tests, two screenshot comparisons, Select Slide, and "Masked slide is rasterized", which needs maskTagThreshold > 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 on v4.0.x-develop)
  • Verified 2026-10-04 with the 8.0.0 package deployed on a 4.0 dev container, next to that container's stock Grails 7.0.12 bbb-web (the container had been recreated from a newer image since the RC2 run): app startup (7.4 s on the first start and 4.0 s on a later restart, against 4.1 s for the stock build; no errors, only the logback layout/encoder warnings the stock build prints too), plain /api, checksummed create -> 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 suites api and presentation: 32 passed, 7 failed, 3 test.fixme on 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 @flaky external-video tests, and "Masked slide is rasterized", which needs maskTagThreshold > 0 where the container has 0). learningdashboard and parameters were not re-run for 8.0.0
  • Verified 2026-10-02 with the RC2 package deployed on a 4.0 dev container: app startup (about 6 s, no warnings or errors), /etc/bigbluebutton/bbb-web.properties overlay, plain /api, checksummed create -> 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 suites api and presentation: 31 passed, 8 failed, 3 test.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 @flaky external-video tests, Share Camera As Content, and "Masked slide is rasterized", which needs maskTagThreshold > 0 where the container has 0). learningdashboard and parameters were not re-run for RC2
  • Verified 2026-09-23 with the RC1 package deployed on a 4.0 dev container: app startup (4.4 s, no warnings), /etc/bigbluebutton/bbb-web.properties overlay, plain /api, checksummed create -> getMeetingInfo -> end round-trip (bbb-web <-> akka-apps), a 5.3 MB presentation upload through the client, plus the Playwright suites api (9 passed, 3 test.fixme), learningdashboard (7/7), presentation (24/31) and parameters (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 container
  • Grails 8.0.0 released: the ASF release vote passed on 2026-10-07 and the artifacts are on Maven Central (byte-identical to the staging artifacts tested on 2026-10-04). The TEMP staging-repository entries are gone from build.gradle; with an empty Gradle cache every configuration resolves from mavenCentral() / repo.grails.org
  • docker-bbb-build: CI builds on the regular bbb-build:v4.0.x-release--2026-10-08-103605 image, which now carries Gradle 9.8.0 and the Grails 8.0.0 CLI; the TEMP grails-8--… image is no longer used
  • Security response headers: keep the Grails 8 defaults (decided 2026-10-08). Pinned by two new @ci Playwright tests and documented in new-features.md; reasoning in "Security headers (new in RC2)" below
  • Tomcat's request parameter limit kept at 10000: Spring Boot 4.1 lowered server.tomcat.max-parameter-count to 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?")
  • 2026-10-13: follow-ups to the test report in the PR comments, each verified on a 4.0 server against its stock Grails 7 build: deploy_to_usr_share.sh installs the packaged unit and refuses the old classpath, joinInsideCrossOriginFrame runs in Chromium only, a new @ci test sends 1200 parameters, the raised Jackson string limit is dropped, and new-features.md lists the other response changes. Details in "Review follow-up (2026-10-13)" below
  • Full CI on fcb38e33f5: all 30 checks passed, including the eight install-and-run-bbb-tests shards (the whole @ci selection, run against the packages built from this branch), the legacy media tests and the plugin tests. On 22e7028bb0 (the two header tests, the docs section, the frame-test fix for Chromium's private network access check, README paths): 29 passed, 1 skipped, and install-and-run-legacy-media-tests failed on the legacy-media recording tests from fix(recording): restore presentation panzoom after screenshare stops #25991, unrelated to this PR; both new tests passed
  • URI parsing in PresentationController.extractQueryParam (UriComponentsBuilder.fromUriString, used to read pageToken from nginx's x-original-uri): unchanged by this PR. The RFC 3986 parser has been the default for fromUriString since Spring Framework 6.2, which v4.0.x-develop already ships (6.2.19); Spring Framework 7 only removed the deprecated fromHttpUrl, which bbb-web does not use. Checked by running the same 39 URIs (normal slide/thumbnail/png requests, missing/empty/duplicate pageToken, 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 throws
  • Grails 8 behavior changes checked, none applies to bbb-web: data binding (bindable: false always honored, deny-by-default opt-in) — bbb-web has no domain classes, command objects or Validateable classes and its actions read params directly; i18n on Spring Boot's MessageSource — nothing in bbb-web or bbb-common-web resolves messages (the bundled grails-app/i18n/messages*.properties are Grails' default constraint messages, unused); statically compiled GSPs — bbb-web ships no GSP views or taglibs (the two render(view: …) references, upload-file and the 500 → /error mapping, point at views that do not exist on Grails 7 either); DOCTYPE rejection in XML request bodies — bbb-web parses create/insertDocument bodies and recording metadata.xml with new XmlSlurper(), not Grails' XML converters, and XmlSlurper already rejects DOCTYPE by default: a normal create body, a plain <!DOCTYPE>, an external-entity (XXE) body, a billion-laughs body and a recording metadata.xml give 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 rejected
  • Follow-up cleanups found during this upgrade (none blocks it) are tracked in bbb-web: cleanups found during the Grails 8 upgrade (#25466) #26002

What does this PR do?

Upgrades the bbb-web stack off the EOL Spring Boot 3.5 line:

Component Before After
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
Tomcat 10.1.59 (pinned) 11.0.26 (one tomcat.version override; Boot 4.1.1 manages 11.0.24; Servlet 6.1)
hibernate-validator 8.0.1.Final 9.1.3.Final
asset-pipeline com.bertramlabs.plugins 5.0.9 cloud.wondrify 5.2.0

bigbluebutton-web

  • gradle.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:
    • Removed the tomcat-embed-* pins and the Boot-3.5-line ext['*.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 is ext['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.
    • Validation stack to Jakarta EE 11: jakarta.validation-api:3.1.1, hibernate-validator:9.1.3.Final. Dropped org.glassfish:jakarta.el — Boot 4 manages no standalone EL artifact; the EL impl comes from tomcat-embed-el (pulled by spring-boot-starter-tomcat).
    • asset-pipeline: com.bertramlabs.plugins → cloud.wondrify (the project moved; 5.2.0 is what the 8.0.0 BOM manages), plugin id cloud.wondrify.asset-pipeline.
    • Gradle 9 compatibility: url =/version =/group = assignments, layout.buildDirectory instead of the removed project.buildDir.
  • grails-app/conf/application.properties: upload limits moved from grails.controllers.upload.maxFileSize/maxRequestSize to spring.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) with InvalidParameterException and its own HTML 500 page, where Tomcat 10.1 dropped the extras. Without the setting a create with many meta_ parameters, or a join with many userdata- parameters, would fail. Measured on the same Boot 4.1.1 / Tomcat 11.0.26 stack: with the default, 990 form parameters to getMeetings answer checksumError and 1200 answer HTTP 500; with the setting, 1200 and 9900 answer checksumError.
  • ApiController.groovy: replaced Groovy-internal org.codehaus.groovy.util.ListHashMap (removed in Groovy 5) with java.util.LinkedHashMap in getJoinUrl. ListHashMap fell back to hash order past three entries, so the URL getJoinUrl returns now lists its parameters in insertion order. Measured through a client join with three userdata- parameters and enforceLayout: Grails 7 emits redirect,existingUserID,userdata-gamma,role,userdata-beta,fullName,meetingID,userdata-alpha,enforceLayout,checksum, this branch fullName,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): installs build/packages-template/bbb-web/bbb-web.service when 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-commons 3.5.12 → 4.1.1 (the line Boot 4.1's spring-data BOM manages; the Page/Pageable/PageImpl surface we use is unchanged).
  • hibernate-validator 8 → 9.1.3.Final, jakarta.validation-api 3.0.2 → 3.1.1, jakarta.servlet-api 6.0.0 → 6.1.0 (provided), jakarta.annotation-api 2.1.1 → 3.0.0.
  • Removed: dead javax.servlet-api:4.0.1 (no source imports javax.servlet anymore — 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), duplicate scala-xml 2.0.0 declaration (2.2.0 wins anyway).
  • BbbWebApiGWApp: no longer touched. The raised Jackson StreamReadConstraints (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 a clientSettingsOverrideJsonUrl response by maxClientSettingsOverrideJsonUrlPayloadSize (1024 KiB), so no input can reach Jackson's 20 MB default, which v4.0.x-develop (Jackson 2.22.3) has today.

Tests (bigbluebutton-tests/playwright/api/, all tagged @ci)

  • bbbWebSecurityHeaders: a document (GET /api), the join redirect 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 through page.route, no extra server) frames the join URL and bbb-web's /api; the client must load inside the frame, and the /api XML 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 checksummed getMeetings POST with 1200 form parameters is answered with SUCCESS (Tomcat's parameter limit, see server.tomcat.max-parameter-count above).

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 and Vary without a CORS configuration, the 10000-parameter limit, form posts above 2 MB sent directly to port 8090, and systemd overrides of ExecStart, 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-message

  • No longer touched by this PR: the Lettuce 7 withPassword(char[]) fix landed on v4.0.x-develop independently (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: SAMEORIGIN
  • X-Content-Type-Options: nosniff
  • Referrer-Policy: strict-origin-when-cross-origin
  • X-XSS-Protection: 0

What 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:

  • Joining through a cross-origin iframe still works on RC2. The join call answers 302, and the framed document is the client served by nginx, which carries no such header. (The test meeting was created with allowRequestsWithoutSession=true; without it the framed client ends in "Session has ended" on the RC1 build too.)
  • A document rendered by bbb-web itself (e.g. the XML of /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=false in /etc/bigbluebutton/bbb-web.properties turns that header off (tested: X-Frame-Options disappears, the other three stay). grails.security.headers.enabled=false turns 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 join redirect 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 nor bbb-install sets 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 with fetch and image requests, not frames. X-Content-Type-Options has no visible effect because bbb-web declares the content type of what it sends and serves no scripts or stylesheets, strict-origin-when-cross-origin is already the browsers' default referrer policy, and X-XSS-Protection: 0 switches 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, or grails.security.headers.enabled=false for all four; each checked on a Grails 8 bbb-web), which survives package upgrades. The two @ci tests above pin the decision, and new-features.md tells 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 to SameSite=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/stuns load 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 d989c772b8 on the v4.0.x-release--2026-10-08-103605 image and installed as a package.

  • Startup hang with the old unit (report item 1). Reproduced with 8.0.0 GA: launched by hand with -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 the main thread is RUNNABLE in GrailsVersionUtils.isValidVersion under DefaultPluginDiscovery.isDependentOn / loadDelayedPlugins / populatePlugins, called from GrailsEnvironmentPostProcessor; the log never gets past logback's own initialisation. deploy_to_usr_share.sh now 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.md tells administrators with an ExecStart override to switch to -cp .. An upstream report with the thread dump is prepared.
  • Parameter limit (item 2). New @ci test overAThousandRequestParameters. 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.
  • Jackson maxStringLength (item 3). Dropped, see bbb-common-web above.
  • Response changes (item 4). Listed in new-features.md. The 3 MB form POST sent directly to port 8090 answers checksumError on Grails 7 and Tomcat's 500 page on this branch; through nginx both answer 413 (client_max_body_size 1 MB on /bigbluebutton).
  • Firefox (item 5). Confirmed: the frame test fails at "the LMS page should stay on its own origin" in Firefox 142 on both builds, because route.continue() with another URL navigates the page there. The test is now Chromium only; the other api tests pass in Firefox.
  • getJoinUrl parameter order (item 6). The report says the order is kept; measured through a client join it changes from hash order to insertion order (sequences under ApiController.groovy above). The checksum is computed over the emitted string, so the URL stays valid.
  • Items 7 and 8: same Playwright results here; the two problems in item 8 (getRecordings totalElements with offset, rap-caption-inbox.rb reading props['presentation_dir'], which bigbluebutton.yml does not define) exist on Grails 7 as well and are not part of this PR.

8.0.0 release (2026-10-08)

  • Release. The Apache Grails 8.0.0 vote passed on 2026-10-07 and the artifacts were promoted to Maven Central the same evening. The jars are byte-identical to the staging artifacts this branch was tested with on 2026-10-04 (sha1 of grails-core and grails-gradle-plugins compared). Gradle 9.8.0 is what the v8.0.0 tag pins everywhere (wrappers, .sdkmanrc, Forge template), so the wrapper stays on it.
  • Staging repositories removed. The three TEMP repository.apache.org/content/groups/staging entries are gone from build.gradle. Resolving runtimeClasspath, testRuntimeClasspath, profile and the buildscript classpath with an empty Gradle cache succeeds from mavenCentral() / 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.
  • CI image. The v4.0.x-release build image line now carries Gradle 9.8.0 and the Grails 8.0.0 CLI next to the toolchain v4.0.x-develop builds with, so this branch is back on that line (v4.0.x-release--2026-10-08-103605).
  • CI. All 30 checks passed on fcb38e33f5: the package builds, the eight install-and-run-bbb-tests shards (every @ci test not tagged @flaky, @need-update, @only-headed, @setting-required or @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).
  • Merge. v4.0.x-develop's bouncycastle 1.86 pins (strict constraints in bigbluebutton-web/build.gradle, dependencyOverrides in bbb-common-web/build.sbt) do not depend on the Spring Boot line and apply here too: the WAR carries bc*-jdk18on-1.86.

8.0.0 revisit (2026-10-04)

  • Release status (at the time). Apache Grails tagged 8.0.0 on 2026-10-04 and opened the release vote the same day; see "8.0.0 release (2026-10-08)" above for the outcome.
  • What changed against RC2. The 8.0.0 BOM differs from RC2's in two entries: asset-pipeline 5.2.0-RC3 -> 5.2.0 and SiteMesh 3.3.0-RC3 -> 3.3.0. Spring Boot 4.1.1, Groovy 5.1.3 and Gradle 9.8.0 are unchanged, and there is still no Spring Boot 4.1 release after 4.1.1, so the Tomcat override stays. The packaged WAR has the same 248 jars as the RC2 build; only the 44 grails-* jars changed version. The branch diff for this step is version strings in four files.
  • Checked, nothing to do for what went into 8.0.0 after RC2: the default dataSource bean (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; the messageSource basename 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.
  • Response differences against the stock Grails 7.0.12 build, measured on the same container by swapping the two builds:
    • With CORS not configured (the default install), Grails 7 added Vary: Origin, Vary: Access-Control-Request-Method and Vary: Access-Control-Request-Headers to every response and answered a CORS preflight with 403 "Invalid CORS request". Grails 8 sends no Vary header and answers the preflight 200 without any Access-Control-* header. Neither grants cross-origin access.
    • With CORS configured the way cluster-proxy.md documents it (-Dgrails.cors.enabled=true -Dgrails.cors.allowCredentials=true -Dgrails.cors.allowedOrigins=... through the systemd override), both builds answer identically: Access-Control-Allow-Origin plus Access-Control-Allow-Credentials: true for an allowed origin, 403 for any other origin, a correct preflight, and the same on the checkGraphqlAuthorization endpoint nginx calls. The cluster-proxy instructions need no change.
    • Spring Boot's error body for an unmapped URL (for example /bigbluebutton/nope, 404) changed from XML (<Map>...) to JSON. The API's own responses are text/xml on both.
    • No other response-header difference was found; the JSESSIONID cookie attributes are identical.
  • CI: the one check that failed on the RC2 head, 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 eight install-and-run-bbb-tests shards passed on that head.

RC2 revisit (2026-10-02)

  • Merge conflict with the dependency audit. v4.0.x-develop refreshed its ext['*.version'] overrides and tomcat-embed pins 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 of build.gradle and takes everything else from the audit.
  • Tomcat 11.0.26. Boot 4.1.1 manages Tomcat 11.0.24, the 11.0 counterpart of 10.1.57, so it lacks the August 2026 fixes upstream gets from 10.1.59 (they are in 11.0.25), and there is no newer Boot 4.1 release to take them from. ext['tomcat.version'] = '11.0.26' moves tomcat-embed-core/-el/-websocket together. 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.
  • Gradle 9.8.0 (Upgrade to Gradle 9.8.0 apache/grails-core#16403). RC2 is built on Gradle 9.8.0, the current release; the wrapper follows to stay on the tested combination. Not a hard requirement: RC2 still assembles on the 9.7.1 wrapper.
  • Checked, nothing to do: the JSON date/time rendering change (8.0 (fix): Render dates and times in JSON the same way as Spring Boot, and bind them back as rendered apache/grails-core#16411) concerns grails.converters.JSON and JSON views, while bbb-web builds JSON with groovy.json.JsonBuilder and 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 one redirect(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)

  • Multipart upload limits (Adopting Spring Boot Multipart Configuration for File Uploads apache/grails-core#16040): Grails 8 hands multipart handling to Spring Boot's auto-configuration. The grails.controllers.upload.maxFileSize/maxRequestSize keys are gone and an application that still sets them aborts at startup with a migration message. bbb-web now sets spring.servlet.multipart.max-file-size/max-request-size to 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 in ParamsProcessorUtil) is unchanged. request.getFile() in PresentationController/RecordingController works as before.
  • Gradle 9.7 (Fix Groovy compilation on Gradle 9.7 and upgrade to 9.7.1 apache/grails-core#16114): the RC1 Grails Gradle plugin is built against Gradle 9.7 — on the 9.6.0 wrapper gradlew assemble fails with NoSuchMethodError: GroovyCompileOptions.getConfigurationScriptFile() (return type changed to RegularFileProperty). Wrapper moved to 9.7.1 at the time (9.8.0 since RC2); dev-guide.md follows.
  • Hidden HTTP method override (Reduce per-request work, and rework hidden HTTP method and multipart handling apache/grails-core#16149): the _method rewrite 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 disabled hiddenHttpMethodFilter registration in resources.groovy still 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.
  • Checked, nothing to do: DOCTYPE rejection in XML request bodies (Fix SAX parser feature URIs and reject DOCTYPE declarations apache/grails-core#16331) only affects Grails' XML converters/data binding — bbb-web parses create/insertDocument bodies with its own XmlSlurper; @Configuration classes in resources.groovy are no longer processed (bbb-web's has none, only importBeans); no interceptors, no grails.async, no GrailsWebRequest.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.secure is still a valid property in Boot 4.1 (verified in its config metadata) — no rename, Secure cookie flag intact.
  • spring.main.allow-circular-references=true is still supported (verified un-deprecated in Boot 4.1 metadata) — both bootRun and bbb-web.service keep 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 the console/profile Gradle configurations all survive in Grails 8.0.0 — resources.groovy and friends need no changes.
  • The persistence uplift that was originally scoped (Hibernate/JPA/DataStore in 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:

  1. ./build/setup.sh bbb-web — uses bbb-build:v4.0.x-release--2026-10-08-103605 from .gitlab-ci.yml, builds bbb-common-message + bbb-common-web (sbt) and bigbluebutton-web (Gradle wrapper), produces artifacts/bbb-web_*.deb
  2. Verify the WAR contents: WEB-INF/lib carries grails-*-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.properties carries spring.servlet.multipart.* and no grails.controllers.upload.*
  3. Install the .deb on a 4.0 dev server, systemctl restart bbb-web (the postinst does not restart inside Docker), then curl -i http://localhost:8090/bigbluebutton/api → SUCCESS, with the four headers listed under "Security headers (new in RC2)" in the response; checksummed create → getMeetingInfo → end all SUCCESS (validation, FreeMarker response path and akka-apps messaging intact); bad checksum → checksumError
  4. Run the new API tests against that server: from bigbluebutton-tests/playwright, BBB_URL=https://<host>/bigbluebutton/ BBB_SECRET=<secret> npx playwright test api/api.spec.ts -g "bbbWebSecurityHeaders|joinInsideCrossOriginFrame|overAThousandRequestParameters"
  5. Upload a presentation larger than 1 MB from the client (e.g. bigbluebutton-tests/playwright/core/media/GeoTopo.pdf, 5.3 MB; the stock presentation suite only uploads smaller files) — proves the multipart limit migration; on Boot's defaults the upload would be rejected
  6. POST 1200 form parameters plus a wrong checksum to /bigbluebutton/api/getMeetings: the answer is checksumError, not an HTTP 500 (Tomcat's parameter limit)

Dev-container flow (unchanged):

  1. cd bbb-common-message && sbt publish publishLocal
  2. cd bbb-common-web && sbt update publish publishLocal (order matters — bbb-common-web resolves bbb-common-message from the local repos)
  3. cd bigbluebutton-web && ./gradlew clean assemble → build/libs/bigbluebutton-0.10.0.war (name unchanged, packaging scripts unaffected)
  4. ./gradlew bootRun --args='--server.port=8091' → Grails application running at http://localhost:8091
  5. curl http://localhost:8091/bigbluebutton/api → SUCCESS, with /etc/bigbluebutton/bbb-web.properties overlay values present (grails.config.locations still works on Grails 8)

…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]>
@coderabbitai

coderabbitai Bot commented Jul 20, 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: 11ec1280-0c67-4e90-a499-a41d0d6065ee
📥 Commits

Reviewing files that changed from the base of the PR and between d989c77 and 1987f08.

📒 Files selected for processing: 4
  • bigbluebutton-tests/playwright/api/api.spec.ts
  • bigbluebutton-tests/playwright/api/api.ts
  • bigbluebutton-web/deploy_to_usr_share.sh
  • docs/docs/new-features.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 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 1987f

The framework upgrade looks mergeable. The cross-origin framing test could be made more precise so it proves the API response is blocked, but production behavior is not affected.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5…
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.
Description check Passed The description clearly explains the Grails 8 and Spring Boot 4.1.1 upgrade, related dependency and configuration changes, testing, and follow-up fixes.
Title check Passed The title concisely and accurately identifies the primary change: upgrading the bbb-web stack to Grails 8.0.0 and Spring Boot 4.1.1.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 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.

- 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]>
antobinary and others added 8 commits July 20, 2026 11:53
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]>
@sonarqubecloud

Copy link
Copy Markdown

@antobinary antobinary added this to the Release 4.0 milestone Jul 20, 2026
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

…-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.
@antobinary antobinary changed the title build: upgrade bbb-web stack to Grails 8.0.0-M3 / Spring Boot 4.1.0 (… build: upgrade bbb-web stack to Grails 8.0.0-M4 / Spring Boot 4.1.0 (… Jul 24, 2026
@antobinary antobinary modified the milestones: Release 4.0, Release 4.1 Jul 29, 2026
@antobinary
antobinary requested a review from paultrudel July 29, 2026 15:42
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

…-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.
@imdt-claudiop

Copy link
Copy Markdown
Contributor

I tested this PR on a 4.0 development environment built from source, at head d989c772b8. To compare, I used the stock Grails 7.0.12 bbb-web build in the same container. These are the results that are important for this PR.

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 -cp WEB-INF/lib/*:/:WEB-INF/classes/:., bbb-web does not bind port 8090, and nginx returns 502.

  • jstack shows that the main thread stays RUNNABLE in DefaultPluginDiscovery.loadDelayedPlugins -> isDependentOn -> GrailsVersionUtils.isValidVersion. The thread used 3m39s of CPU in 3m20s.
  • The livelock described in commit b8e3c94f73 thus also occurs in 8.0.0 GA.
  • The unit in this PR (-cp .) fixes the problem. With it, bbb-web started in 10.7 s, and /bigbluebutton/api returned 200.

Who has this risk: deploy_to_usr_share.sh replaces only /usr/share/bbb-web and does not replace the unit. A server keeps the old unit after this dev deploy. A server also keeps the old unit if an administrator has a full override from systemctl edit --full.

Recommendations:

  1. Change deploy_to_usr_share.sh so that it installs the new unit, or shows a warning.
  2. Add a release note for administrators who have a full override of the unit.
  3. Send a report about the livelock to the Grails project.

2. Tomcat parameter limit (low)

The line server.tomcat.max-parameter-count=10000 is necessary. When I removed it, a POST with 1200 parameters returned the Tomcat HTML 500 page. With the line, 1200 and 9900 parameters return the correct API response.

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 maxStringLength raise (low)

A request cannot send a JSON string that is long enough to need this change:

  • Through nginx, /bigbluebutton uses the default client_max_body_size of 1 MB. A create POST of 1.5 MB or more returns 413.
  • Direct to port 8090, the Tomcat maxPostSize of 2 MB stops a 3 MB body. Grails 8 then returns HTML 500.

Also, v4.0.x-develop already uses Jackson 2.22.3, so the reason given in the commit is out of date. I recommend that you remove this change from this PR.

4. Response changes that new-features.md does not tell about (low)

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 join redirect and on 404 responses.
  • In Chromium, Firefox and WebKit, the client loads when an LMS page on a different origin puts the join URL in a frame.
  • In the same three browsers, /api in a frame is blocked.
  • A failed join in a frame goes to the error page, and the error page shows.
  • grails.security.headers.frame-options.enabled=false removes only X-Frame-Options.
  • grails.security.headers.enabled=false removes 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.
  • putRecordingTextTrack accepts the multipart file.
  • getJoinUrl keeps 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.properties overlay 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

  • getRecordings with offset > 0 returns an incorrect totalElements. For example, with 3 recordings, offset=1 returns 2. A large offset returns HTTP 500. Grails 7 gives the same results.
  • rap-caption-inbox.rb reads props['presentation_dir'], but bigbluebutton.yml does 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.
@antobinary

Copy link
Copy Markdown
Member Author

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 d989c772b8 on the v4.0.x-release--2026-10-08-103605 image and installed as a package:

1. Startup hang with the old unit. Reproduced with 8.0.0 GA: launched by hand with -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 main is RUNNABLE in GrailsVersionUtils.isValidVersion under DefaultPluginDiscovery.isDependentOn / loadDelayedPlugins, called from GrailsEnvironmentPostProcessor.

  • deploy_to_usr_share.sh now installs the unit from build/packages-template/bbb-web when the installed one differs, and refuses to start when the active unit (an override under /etc/systemd/system) still has the old classpath, printing what to change. Both paths checked on the server, the second with a temporary drop-in.
  • new-features.md tells administrators with an ExecStart override to switch to -cp ..
  • An upstream report with the thread dump is prepared.

2. Parameter limit. New @ci test overAThousandRequestParameters: a checksummed getMeetings POST with 1200 form parameters must answer SUCCESS. Measured on this branch: 990, 1200 and 9900 parameters are processed, 10100 get Tomcat's 500 page; the Grails 7 build processes 10100 and drops the extras. The 10000 boundary is now in new-features.md.

3. Jackson maxStringLength. Dropped; BbbWebApiGWApp.scala is back to v4.0.x-develop. The only readers of that mapper in the bbb-web JVM are the akka-apps messages from Redis; request bodies are capped by nginx (1 MB on /bigbluebutton, 413 as you measured) and Tomcat (2 MB form posts), and a clientSettingsOverrideJsonUrl response by maxClientSettingsOverrideJsonUrlPayloadSize (1024 KiB), so nothing can reach the 20 MB default.

4. Response changes. Added to new-features.md under the security-headers section: JSON 404 bodies, preflight 200 without CORS headers and no Vary: Origin without a CORS configuration, the 10000-parameter limit, and form posts above 2 MB sent directly to port 8090 (nginx answers 413 above 1 MB first; here a 3 MB form post on 8090 answers checksumError on Grails 7 and Tomcat's 500 page on this branch).

5. Firefox. Confirmed with Playwright 1.56 / Firefox 142: the test fails at "the LMS page should stay on its own origin" because route.continue() with another URL navigates the page there. joinInsideCrossOriginFrame now runs in Chromium only (test.skip with that reason); CI runs Firefox only with the "test Firefox" label, and the other api tests pass there.

6. getJoinUrl parameter order. It does change. Measured through a client join on both builds, with three userdata- parameters and enforceLayout: Grails 7 emits redirect,existingUserID,userdata-gamma,role,userdata-beta,fullName,meetingID,userdata-alpha,enforceLayout,checksum (ListHashMap falls back to hash order past three entries), this branch fullName,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; the description says so.

7. Same results here, thanks.

8. Both are independent of this PR and the same on Grails 7: getRecordings totalElements with offset, and rap-caption-inbox.rb reading props['presentation_dir'] while bigbluebutton.yml defines raw_presentation_src. They need their own issues.

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary

Copy link
Copy Markdown
Member Author

@imdt-claudiop please review again.

@imdt-claudiop

Copy link
Copy Markdown
Contributor

Re-review at head 1987f08412. I tested this head on a 4.0 development environment built from source, with bbb-web and html5 in production mode. These are the results.

Fixes that I verified

  1. Startup hang with the old unit: fixed for the dev deploy.
    • I put the old unit back and ran deploy_to_usr_share.sh. The script replaced the unit. bbb-web started with -cp ., and /bigbluebutton/api returned 200.
    • I then added an override with the old ExecStart. The script stopped with the documented error, and it did not start bbb-web.
  2. Parameter limit: verified. 990, 1200 and 9900 parameters work normally, and 10100 parameters return the Tomcat HTML 500 page. The new test overAThousandRequestParameters passed. In the earlier run, 1200 parameters returned 500 without server.tomcat.max-parameter-count, so I expect the test to fail if this setting is removed.
  3. Jackson maxStringLength: removed. BbbWebApiGWApp.scala is the same as in v4.0.x-develop. The deployed bbb-common-web jar does not contain StreamReadConstraints.
  4. Response changes: each item in the new new-features.md text matches what the server returns:
    • The 404 body is JSON.
    • Without a CORS configuration, a preflight returns 200 without Access-Control-* headers.
    • Vary: Origin is not sent.
    • The 10000-parameter limit applies.
    • A 3 MB form POST sent directly to port 8090 returns 500.
  5. Firefox: the skip is in the test code. I did not run a Firefox project.

Correction to my earlier comment

My earlier comment said that getJoinUrl keeps the parameter order. That statement is not correct. I examined only this branch, where the order is the insertion order. Your measurement on Grails 7 shows hash order after three entries. Thus the order changes, and the PR description now says this correctly.

New item (documentation, low)

In docs/docs/new-features.md, the new subsection "Other bbb-web response changes on Grails 8" is inside the "Security response headers from bbb-web" section. The paragraph "The other three headers are controlled by ..." is now under the new heading, and that heading is not correct for it. Move this paragraph up, directly after the grails.security.headers.frame-options.enabled=false example.

Playwright e2e results at this head

I used Chromium, without the @flaky, @need-update, @setting-required, @only-headed and @known-issue tags. The setup step is not counted.

Spec area Result
api 11 passed
breakout (client settings override) 1 passed
learningdashboard 7 passed
presentation 21 passed, 1 failed
recording 12 passed
  • The failed test is "Hide Presentation Toolbar", which is a screenshot comparison. It also failed on the Grails 7 build in the same container.
  • In my earlier comment, the totals counted the setup step once in each suite, so they were too high. The correct earlier total is 145 passed and 1 failed.

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.

@imdt-claudiop

Copy link
Copy Markdown
Contributor

Verdict: approve.

I tested heads d989c772b8 and 1987f08412 on a 4.0 development environment built from source. All the items from my earlier comments are fixed or documented. The upgrade caused no regression in the areas that I tested: API, presentation upload, caption upload, recordings, security headers, framed join, CORS and the e2e suites. The only e2e failure also occurs on the Grails 7 build.

One small item does not block the merge. In docs/docs/new-features.md, move the paragraph "The other three headers are controlled by ..." up. Put it directly after the grails.security.headers.frame-options.enabled=false example.

@antobinary
antobinary merged commit c369c97 into bigbluebutton:v4.0.x-develop Oct 14, 2026
32 of 33 checks passed
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 14, 2026
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.
@antobinary antobinary mentioned this pull request Oct 14, 2026
2 tasks done
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 14, 2026
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)
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 15, 2026
…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.
antobinary added a commit that referenced this pull request Oct 15, 2026
…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.
antobinary added a commit that referenced this pull request Oct 15, 2026
…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.
antobinary added a commit that referenced this pull request Oct 26, 2026
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.
antobinary added a commit that referenced this pull request Oct 27, 2026
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)
antobinary added a commit that referenced this pull request Oct 28, 2026
* 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.
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.

3 participants