[Pkg-mailman-hackers] Bug#1033072: Bug#1033072: mailman3-web: After upgrade, moderation operations are broken

Pierre-Elliott Bécue peb at debian.org
Thu Apr 25 00:55:25 BST 2024


Hi,

Peter Chubb <peter.chubb at unsw.edu.au> wrote on 17/03/2023 at 00:24:59+0200:

> Package: mailman3-web
> Version: 0+20200530-2.1
> Severity: normal
>
> Dear Maintainer,
>
> I had a working mailman3 installation.  I did 'apt upgrade' which pulled
> in a new python3-hyperkitty and nginx.  Now when trying to manage
> 'held messages' on a list:
>   -- the checkbox next to 'Subject' does not toggle all the checkboxes below it.
>   -- Clicking on a held message does not switch to a page where I can manage
>      the sender of that message. In fact it does nothing.
>
> I suspect the javascript to run this is broken somehow.
> In my bro3wser console when looking at teh javascript I see:
>
> Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.
>     at Object.jQueryDetection (bootstrap.min.js:34:98)
>     at bootstrap.min.js:34:407
>     at bootstrap.min.js:6:200
>     at bootstrap.min.js:6:288
> main.js:38 Uncaught ReferenceError: $ is not defined
>     at main.js:38:1
> held_messages:445 Uncaught ReferenceError: $ is not defined
>     at held_messages:445:7
> held_messages.js:3 Uncaught ReferenceError: $ is not defined
>     at loadjs (held_messages.js:3:3)
>     at held_messages:452:1
>
> The held_messages source file refers to jquery-3.6.0; but 
> jquery-1.11.3 is installed in /var/lib/mailman3/web/static/postorius/libs/jquery
>
>
> I notice that version 3.6 is in
> /usr/share/python3-django-postorius/static/postorius/libs/jquery ...
> should the nginx snippet in /etc/mailman3 be updated to point here?
>
> For now I deleted /var/lib/mailman3/web/static/postorius and replaced it
> with a symlink to /usr/share/python3-django-postorius/static/postorius

This is a race condition.

When you upgraded hyperkitty/postorius, mailman3-web did not get updated
and therefore the django commands that should be run were not.

I think I have a solution for that, but I need to proof-check it.

Sorry.
-- 
PEB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 853 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20240425/dabb7db5/attachment.sig>


More information about the Pkg-mailman-hackers mailing list