#5195 Public Notifications gives a 500 error on submit
Opened 2 years ago by kevin. Modified 2 years ago

Downstream report: https://pagure.io/fedora-infrastructure/issue/10070

Basically adding any email to get pr notifications results in a 500 error.

The end of the traceback seems to be:

...
[Fri Jul 16 22:02:45.438797 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/pagure/decorators.py", line 132, in check_session_timeout
[Fri Jul 16 22:02:45.438818 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     return
function(*args, **kwargs)
[Fri Jul 16 22:02:45.438820 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/pagure/decorators.py", line 113, in check_repo_admin
[Fri Jul 16 22:02:45.438824 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     return
function(*args, **kwargs)
[Fri Jul 16 22:02:45.438826 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/pagure/ui/repo.py", line 2855, in update_public_notifications
[Fri Jul 16 22:02:45.438852 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     if form
.validate_on_submit():
[Fri Jul 16 22:02:45.438874 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/flask_wtf/form.py", line 101, in validate_on_submit
[Fri Jul 16 22:02:45.438877 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     return
self.is_submitted() and self.validate()
[Fri Jul 16 22:02:45.438880 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/wtforms/form.py", line 310, in validate
[Fri Jul 16 22:02:45.438882 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     return
super(Form, self).validate(extra)
[Fri Jul 16 22:02:45.438884 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/wtforms/form.py", line 152, in validate
[Fri Jul 16 22:02:45.438889 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     if not
field.validate(self, extra):
[Fri Jul 16 22:02:45.438911 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/wtforms/fields/core.py", line 206, in validate
[Fri Jul 16 22:02:45.438914 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     stop_va
lidation = self._run_validation_chain(form, chain)
[Fri Jul 16 22:02:45.438916 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/wtforms/fields/core.py", line 226, in _run_validation_chain
[Fri Jul 16 22:02:45.438918 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     validat
or(form, self)
[Fri Jul 16 22:02:45.438920 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]   File "/us
r/lib/python3.6/site-packages/pagure/forms.py", line 85, in __call__
[Fri Jul 16 22:02:45.438923 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216]     if not
self.regex.match(data or ""):
[Fri Jul 16 22:02:45.438926 2021] [wsgi:error] [pid 1998457:tid 139938645837568] [remote 10.3.163.75:57216] AttributeEr
ror: 'MultipleEmail' object has no attribute 'regex'

Login to comment on this ticket.

Metadata