[Pkg-mailman-hackers] Bug#982935: Postorius & Hyperkitty -- broken Javascript (Bootstrap)?

Jonas Meurer jonas at freesources.org
Tue Feb 16 18:50:20 GMT 2021


Package: postorius
Version: 1.3.4-1

Hey Matt,

thanks for reporting the issue. I'll transform this into a proper Debian 
bugreport so that it doesn't get lost.

Am 10.02.21 um 18:57 schrieb Matthew Blissett:
> I've installed mailman3-full from the current packages in bullseye.
> 
> The dropdown controls on the UI for Postorius (e.g. "Subscription 
> requests", "Mass operations" and the username button to log out etc) and 
> the similar controls on Hyperkitty (e.g. "Threads by month") do not 
> work.  You can see the latter at 
> http://newlistszm.gbif.org/mailman3/hyperkitty/list/test@newlistszm.gbif.org/ 
> 
> 
> I found https://lists.gem5.org/archives/list/gem5-announce@gem5.org/ 
> which is running the same version, but presumably not using Debian 
> packages as the Javascript is slightly different.

Yeah, we replace some Javascript libraries from the Mailman3 Postorius 
package that are already packaged in Debian to avoid code duplication.

> Could this be a problem with the Debian packaging, or perhaps my 
> configuration -- which is very close to the defaults (i.e. Mailman and 
> Apache configuration generated by dpkg-reconfigure).

Mh, might well be a problem with the JS library replacement I mentioned 
above. Would you mind doing the following on your Mailman3 system to see 
whether it fixes the bug:

* Fetch `jquery-1.11.3.min.js` from [1] and replace the symlink 
`/usr/share/python3-django-postorius/static/postorius/libs/jquery/jquery-1.11.3.min.js` 
with it.
* Fetch `bootstrap.min.js` from [2] and replace the symlink 
`/usr/share/python3-django-postorius/static/postorius/libs/bootstrap/js/bootstrap.min.js` 
with it.
* Fetch `html5shiv.js` and `html5shiv.min.js` from [3] and [4] and 
replace the symlinks at 
`/usr/share/python3-django-postorius/static/postorius/libs/html5shiv/` 
with them.

[1] 
https://gitlab.com/mailman/postorius/-/raw/master/src/postorius/static/postorius/libs/jquery/jquery-1.11.3.min.js
[2] 
https://gitlab.com/mailman/postorius/-/raw/master/src/postorius/static/postorius/libs/bootstrap/js/bootstrap.min.js
[3] 
https://gitlab.com/mailman/postorius/-/raw/master/src/postorius/static/postorius/libs/html5shiv/html5shiv.js
[4] 
https://gitlab.com/mailman/postorius/-/raw/master/src/postorius/static/postorius/libs/html5shiv/html5shiv.min.js

Afterwards, you might (or might not) have to recreate the django cache 
(not sure), which can easily be done by reconfiguring `mailman3-web`:

$ sudo dpkg-reconfigure mailman3-web

That would be super helpful in order to find out whether our Debian 
versions of the JS libraries are the reason for your issue.

Thanks a lot for helping to debug the problem :)

Kind regards
  jonas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20210216/fff375cb/attachment-0001.sig>


More information about the Pkg-mailman-hackers mailing list