This issue still persists in Ubuntu 26.04 LTS (resolute) with `rspamd`
3.8.1-1.2ubuntu3.

The Web UI (`https://<host>/rspamd/`) loads, but clicking any of the top
navigation tabs (Status, Throughput, Configuration, Symbols, Scan/Learn,
History) does nothing, making the Web UI unusable out of the box.

[Root Cause]
Rspamd 3.8.1's Web UI (`/usr/share/rspamd/www/index.html` and 
`js/app/rspamd.js`) uses Bootstrap 5 attributes such as `data-bs-toggle="tab"`. 
However, the Ubuntu package still depends on `libjs-bootstrap4` (4.6.2+dfsg-2) 
and copies Bootstrap 4.6.2's `bootstrap.bundle.min.js` and `bootstrap.min.css` 
into `/usr/share/rspamd/www/`, which only handles Bootstrap 4's 
`data-toggle="tab"`.

[Verified Workaround]
Installing `libjs-bootstrap5` (5.3.8+dfsg-2, available in resolute/universe) 
and replacing those two files resolves the issue immediately:
- `/usr/share/javascript/bootstrap5/js/bootstrap.bundle.min.js` -> 
`/usr/share/rspamd/www/js/lib/bootstrap.bundle.min.js`
- `/usr/share/javascript/bootstrap5/css/bootstrap.min.css` -> 
`/usr/share/rspamd/www/css/bootstrap.min.css`

Debian (trixie/sid) has already updated the `rspamd` dependency from
`libjs-bootstrap4` to `libjs-bootstrap5`. Could this dependency fix be
backported via SRU for Ubuntu 26.04 (and 24.04) so the Web UI works
properly out of the box?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2065914

Title:
  rspamd webgui navigation not working ( ubuntu 24.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rspamd/+bug/2065914/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to