Project

General

Profile

Segnalazione #162

Altra eccezione nell'edit del cluster, quando si ha un host con nome vuoto probabilmente

Added by Mark Caglienzi over 7 years ago. Updated over 7 years ago.

Status:
Chiuso
Priority:
Normale
Start date:
01/19/2017
Due date:
% Done:

0%

Estimated time:

Description

Eccezione nell'edit di cluster (secondo me dovuta sempre al problema della creazione di un host con nome vuoto...da indagare per evitare problemi)

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/host/group/edit/paperopoli

Django Version: 1.8.8
Python Version: 3.5.3
Installed Applications:
['django.contrib.sessions',
 'django.contrib.messages',
 'whitenoise.runserver_nostatic',
 'django.contrib.staticfiles',
 'octonet',
 'hostqueue.apps.HostQueue',
 'firewall.apps.Firewall',
 'dhcp.apps.Dhcp',
 'dansguardian.apps.DansGuardian',
 'host.apps.Host',
 'polygen.apps.Polygen',
 'upgrade.apps.Upgrade',
 'asterisk.apps.Asterisk',
 'samba.apps.Samba',
 'users.apps.Users',
 'script.apps.Script',
 'quota.apps.Quota',
 'printers.apps.Printers',
 'auth.apps.Auth']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'whitenoise.middleware.WhiteNoiseMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'octonet.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:
File "/home/mark/truelite/FUSS/octonet/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/mark/truelite/FUSS/octonet/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)
File "/home/mark/truelite/FUSS/octonet/host/views.py" in dispatch
  100.         return super().dispatch(*args, **kwargs)
File "/home/mark/truelite/FUSS/octonet/octonet/mixins.py" in dispatch
  105.         return super().dispatch(request, *args, **kw)
File "/home/mark/truelite/FUSS/octonet/host/views.py" in dispatch
  25.         return super().dispatch(*args, **kwargs)
File "/home/mark/truelite/FUSS/octonet/django/views/generic/base.py" in dispatch
  89.         return handler(request, *args, **kwargs)
File "/home/mark/truelite/FUSS/octonet/django/views/generic/base.py" in get
  158.         context = self.get_context_data(**kwargs)
File "/home/mark/truelite/FUSS/octonet/host/views.py" in get_context_data
  128.         context['hosts_with_logged_user'] = len([x for x in hosts if x['logged_user']])
File "/home/mark/truelite/FUSS/octonet/host/views.py" in <listcomp>
  128.         context['hosts_with_logged_user'] = len([x for x in hosts if x['logged_user']])

Exception Type: TypeError at /host/group/edit/paperopoli
Exception Value: list indices must be integers or slices, not str

History

#1

Updated by Mark Caglienzi over 7 years ago

  • Status changed from Nuovo to In elaborazione
#2

Updated by Mark Caglienzi over 7 years ago

  • Status changed from In elaborazione to Chiuso

Stamattina non lo riesco più a riprodurre (e in effetti era un bug ben strano...)

Lo chiudo e se dovesse ricapitare si può riaprire il ticket, o aprirne un altro in alternativa.

Also available in: Atom PDF