Content Filter
Dopo aver aggiunto on dominio da whitelistare octonet va in crash.
Forse da rivedere le entry whitelistate gia presenti come default?
Environment:
Request Method: POST
Request URL: http://localhost:13402/dansguardian/edit/allowed_sites
Django Version: 1.8.16
Python Version: 3.4.2
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 "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in view
71. return self.dispatch(request, *args, **kwargs)
File "/usr/share/octonet/octonet/mixins.py" in dispatch
114. return super().dispatch(request, *args, **kw)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/edit.py" in post
215. return self.form_valid(form)
File "/usr/share/octonet/dansguardian/views.py" in form_valid
62. self.tree.ldelete([self.page, key])
File "/usr/lib/python3/dist-packages/octofuss/tree.py" in ldelete
166. return self.tree.ldelete(self.root + path, **kw)
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in ldelete
112. return self._wrap_call(self.server.delete, "/".join(path))
File "/usr/lib/python3/dist-packages/octofuss/xmlrpc.py" in _wrap_call
78. raise exception_serializer.from_dict(res["exc"])
Exception Type: KeyError at /dansguardian/edit/allowed_sites
Exception Value: "'cannot delete path allowed_sites/provincia.bz.it/intendenza-scolastica/strutture/struttura-convitto.asp'"