Project

General

Profile

Actions

tickets #152993

open

Cannot delete voter on Helios election platform

Added by Ishwon 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Helios
Target version:
-
Start date:
2024-01-01
Due date:
% Done:

0%

Estimated time:

Description

Hello,

We are currently running the openSUSE Board Election on the Helios election platform.
We need to delete a voter and then re-issue a voter crendential for the latter.

When deleting the voter, Helios displays the following error (also see attached screenshot):

Environment:

Request Method: GET
Request URL: https://elections.opensuse.org/helios/elections/b53b657a-ee2c-4752-aa95-4773ee2bc288/voters/5aed22c9-7eee-4a15-95c9-0fdcfd85fcaf/delete

Django Version: 1.11.29
Python Version: 3.6.15
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'helios_auth',
 'helios',
 'server_ui')
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'helios.security.HSTSMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware']

Traceback:

File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "./helios/security.py" in election_admin_wrapper
  182.       return func(request, election, *args, **kw)

File "./helios/views.py" in voter_delete
  890.       voter.user.send_message(subject, body)

Exception Type: AttributeError at /helios/elections/b53b657a-ee2c-4752-aa95-4773ee2bc288/voters/5aed22c9-7eee-4a15-95c9-0fdcfd85fcaf/delete
Exception Value: 'NoneType' object has no attribute 'send_message

Grateful if you can look into the matter and advise.

Regards,

Ish Sookun

// On behalf of the Election Committee


Files

Helios_error.png (1000 KB) Helios_error.png Ishwon, 2024-01-01 17:18
Actions

Also available in: Atom PDF