On Fri, Jul 26, 2024 at 9:21 AM Elias Rudberg <mail@eliasrudberg.se> wrote:
So maybe those strange request URLs that lead to the error messages "[Django] ERROR (EXTERNAL IP): Internal Server Error" that we are seeing, are constructed by someone who is actively trying to trigger bugs.
I had thousands of these errors arrive in my inbox. Mine included, "NameError at /hyperkitty/list/ redacted@lists.redacted.org/thread/TBIYJOIAOIT53AJHJ3V743GZHIYZJMQW/ name 'escape_url' is not defined"
This was for the Ubuntu mailman3 packages on a fresh 24.04 LTS system, from which I imported my Mailman2.1 lists. This problem was "caused" simply by visitors to the impacted web pages (robots/spiders or human users). I could trigger the error myself just by following the problematic link.
After digging deeply into the code, and getting some support from the mailman-users list, I concluded that *the Ubuntu packages were not fit for purpose.* There were numerous issues including not being up-to-date with the official code base.
I instead followed the venv instructions ("recommended") and those problems went away.
I still am having some issues with importing Mailman 2.1 lists, and will be sending a note about that soon. Regards, Greg Newby