Roundup Tracker - Issues

Message8253

Author cmeerw
Recipients cmeerw
Date 2025-01-11.09:18:37
Message-id <1736587117.5.0.986557630533.issue2551387@roundup.psfhosted.org>
In-reply-to
I get the occasional email from roundup with:

Traceback (most recent call last):
  File "/home/app-roundup/roundup/lib/roundup/cgi/client.py", line 836, in inner_main
    csrf_ok = self.handle_csrf()
              ^^^^^^^^^^^^^^^^^^
  File "/home/app-roundup/roundup/lib/roundup/cgi/client.py", line 1646, in handle_csrf
    if '@csrf' in self.form:
       ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/cgi.py", line 584, in __contains__
    raise TypeError("not indexable")
TypeError: not indexable


Presumably, someone is posting rubbish to the URL; it can be reproduced using:

curl -X POST https://issues.example.com/ -H "Content-Type: text/plain" -d "test"

(replacing issues.example.com with a roundup instance)
History
Date User Action Args
2025-01-11 09:18:37cmeerwsetrecipients: + cmeerw
2025-01-11 09:18:37cmeerwsetmessageid: <1736587117.5.0.986557630533.issue2551387@roundup.psfhosted.org>
2025-01-11 09:18:37cmeerwlinkissue2551387 messages
2025-01-11 09:18:37cmeerwcreate