[issue2551387] TypeError: not indexable
Christof Meerwald <[email protected]> Sat, 11 Jan 2025 09:18:37 +0000
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
New submission from Christof Meerwald:
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)
----------
components: Web interface
messages: 8253
nosy: cmeerw
priority: normal
severity: normal
status: new
title: TypeError: not indexable
type: crash
versions: 2.4.0
_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551387>
_________________________________________________