Actions
Bug #8934
closedIncorrect processing of decision configuration file
Start date:
06/08/2018
Due date:
% Done:
100%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
I got the following exception when attached job.json instead of proper decision configuration file:
Environment: Request Method: POST Request URL: http://localhost:8998/jobs/prepare_run/2/ Django Version: 2.0.6 Python Version: 3.5.3 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'jobs', 'marks', 'reports', 'service', 'tools', 'users') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'bridge.utils.BridgeMiddlware') Traceback: File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner 35. response = get_response(request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 128. response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response 126. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in view 69. return self.dispatch(request, *args, **kwargs) File "/var/www/klever-bridge/tools/profiling.py" in dispatch 187. response = getattr(super(), 'dispatch')(request, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in dispatch 89. return handler(request, *args, **kwargs) File "/var/www/klever-bridge/jobs/views.py" in post 425. return self.render_to_response(self.get_context_data(**kwargs)) File "/var/www/klever-bridge/jobs/views.py" in get_context_data 442. file_conf=json.loads(self.request.FILES['file_conf'].read().decode('utf8')) File "/var/www/klever-bridge/jobs/utils.py" in __init__ 894. self.__get_file_conf(file_conf) File "/var/www/klever-bridge/jobs/utils.py" in __get_file_conf 930. if sch[1] == filedata['task scheduler']: Exception Type: KeyError at /jobs/prepare_run/2/ Exception Value: 'task scheduler'
Updated by Vladimir Gratinskiy over 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Fixed in fix_8934. Now all unexpected exception in class-based views will lead to error page with "Unknown error".
Updated by Evgeny Novikov over 6 years ago
- Status changed from Resolved to Closed
Vladimir Gratinskiy wrote:
Fixed in fix_8934. Now all unexpected exception in class-based views will lead to error page with "Unknown error".
I merged the branch to master in 9d8fc6ef. The behavior seems to correspond the one we observed before recent changes, so it is pretty well.
Updated by Evgeny Novikov over 6 years ago
- Related to Feature #8729: Bridge does not work with Django 2.* added
Actions