Bootstrap 4 Package icon
Module Id
Bootstrap4
Author
pvollenweider
Updated
Requires Jahia
8.2.0.0
Category
Templating and extensions
Status
COMMUNITY info

Bootstrap 4 Package group_work

bootstrap

This package provides the mandatory bundles to use Bootstrap 4 on Jahia. 

Get the full documentation at https://store.jahia.com/module/bootstrap4components

Embedded Modules

Changelog 4.7.0

⚠️ Breaking Changes

  • Requires Jahia 8.2.0+ — Jahia 8.0 and 8.1 are end-of-life
  • Requires Java 11+ — compiler target raised from Java 8 to Java 11
  • Spring removed — OSGi Declarative Services only; no Spring context, no Blueprint extender

🔒 Security Fixes

  • XSS: page1Title unescaped in navbar dropdown link (navbar.basenav.jsp)
  • XSS: brandText unescaped in navbar body (navbar.jsp)
  • Stored XSS: title/caption unescaped in carousel item body text (carouselItem.jsp)
  • Stored XSS: footer property unescaped in card (card.jsp)

🐛 Bug Fixes

  • Carousel indicators: active class on <button> instead of <li> — visual state broken after first slide
  • Carousel: wrong guard variable ${empty ride} defaulted wrap (should be ${empty wrap})
  • Carousel JS: pause/play labels injected via fn:escapeXml into <script> string — replaced with data-attribute pattern
  • Pagination: disabled prev/next links keyboard-activatable after tabindex="-1" removal — restored alongside aria-disabled
  • Card: dynamic tag name for header sanitized with whitelist instead of fn:escapeXml
  • Package jar: was named *-root.jar — now correctly bootstrap4-package-4.7.0.jar
  • Package: bootstrap4-core dependency version was literally c (typo)

♿ Accessibility (WCAG 2.1 AA)

Full WCAG 2.1 Level AA pass across all components: breadcrumb, carousel, carousel item, tabs, navbar, pagination, button/modal, alert, grid, image. Highlights:

  • Carousel: accessible indicators (buttons), prev/next controls, pause/play button (WCAG 2.2.2)
  • Navbar: dropdown triggers converted to <button>aria-current="page" on active links
  • All components: proper landmark regions, ARIA roles/labels, keyboard navigation

🏗️ Build

  • Maven CI-friendly ${revision} — version defined once in root pom
  • Package aligned with Bootstrap 5 pattern (jahia-packages-parent, full manifest entries)
  • CodeQL + Dependabot enabled
  • LICENSE.txt and SECURITY.md added

📖 Documentation

  • CHANGELOG.md introduced
  • MIGRATION.md — migration guides extracted from README
  • Bootstrap 4 EOL warning with link to Bootstrap 5

Full changelogbootstrap4-modules-4.6.8...bootstrap4-modules-4.7.0

License

The MIT License (MIT)

Copyright (c) 2017-2020 Philippe Vollenweider, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.