borinquenkid opened a new pull request, #16057: URL: https://github.com/apache/grails-core/pull/16057
## Summary `grails-spring-security-ui` and its example apps (cas/ldap/ui) relied on jQuery/Bootstrap 3-era APIs that were removed in jQuery 4 and renamed in Bootstrap 5. This currently blocks the pending Dependabot dependency bumps: - #15838 (jQuery bump) and #15839 (Bootstrap bump) both cause reproducible functional test regressions when merged as-is, since the plugin and example apps still call deprecated jQuery APIs and use Bootstrap 3 markup attributes. This PR fixes the underlying compatibility issues so those bumps (or their next iterations) can be merged cleanly: - Migrate `grails-spring-security-ui`'s JavaScript off jQuery-4-removed APIs: `.bind()`/`.unbind()` → `.on()`/`.off()`, `.andSelf()` → `.addBack()`, `$.isFunction` → `typeof` check. - Bump DataTables (1.10.25 → 2.3.0), jQuery (2.1.4 → 4.0.0), jQuery UI (1.10.3 → 1.14.1), and jQuery UI Themes (1.10.3 → 1.13.2) webjar versions in the plugin, with asset manifest `require` paths updated to match the actual resource layout of each new jar version. - Bump jQuery (→ 4.0.0) and Bootstrap (→ 5.3.8) webjar versions in the `cas/test1` and all four `ldap/*` example apps. - Update Bootstrap 3 `data-toggle`/`data-target` attributes to `data-bs-toggle`/`data-bs-target` in the ldap example apps' navbar/dropdown markup — Bootstrap 5's JS does not recognize the old attribute names, so the navbar toggle and dropdown menus were non-functional under Bootstrap 5. - Update doc-cited version numbers in `customization.adoc`. ## Test plan - [x] `assetCompile` runs clean (no "Unable to Locate Asset" warnings) on the plugin and all 5 touched example apps (cas/test1, ldap × 4) against the new webjar versions. - [x] `DefaultSecurityInfoSpec` / `RegisterSpec` integration tests pass in both `spring-security-ui-simple` and `spring-security-ui-extended` — these exercise the DataTables-rendered security info page and the jQuery-validated registration/forgot-password forms. - [x] `ldap/functional-test-app`'s full Geb functional suite (login, auth, secured URL visibility) passes with the bumped jQuery/Bootstrap and updated navbar markup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
