I’m making a fresh install of indico to migrate our 1.2 installation to. I’ve followed the instructions here: https://docs.getindico.io/en/stable/installation/production/centos/nginx/. Part of this was “pip install indico” which I assume installs 2.0.3 (I have a separate item about how to verify that). This is configured, but has no active data in it yet.
It has been installed since Friday, but today we suddenly had around 500 emails containing this traceback:
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/flask/util.py", line 114, in wrapper
return obj().process()
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 270, in process
res = self._do_process()
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 249, in _do_process
return self._process()
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/blueprint.py", line 50, in _process
_send_email(form.with_event.data)
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/blueprint.py", line 39, in _send_email
_notify_registration(Registration.get(56757), 'registration_creation_to_registrant.html')
File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/registration/notifications.py", line 41, in _notify_registration
regform = registration.registration_form
AttributeError: 'NoneType' object has no attribute 'registration_form'
This happened after I’d told our security people that it was only if they wanted to scan it, so my guess is that this was triggered by them, rather than by real use. but in any case I think a test for a null value is needed here.