Project

General

Profile

Anomalie #4004

Crash when trying to modify a FIND with a read-only account

Added by Yann Le Jeune over 1 year ago. Updated over 1 year ago.

Status:
Nouveau
Priority:
Urgent
Category:
Forms and wizards
Target version:
Start date:
03/18/2018
Due date:
% Done:

0%

Difficulté:

Description

Seen on RABLE instance with an read-only + scientific responsible account, trying to modify a find not related to an OPE linked to that account.

History

#1 Updated by Yann Le Jeune over 1 year ago

TypeError at /find_modification/selecrecord-find_modification

get_prefix() takes at least 2 arguments (1 given)

Request Method: GET

Request URL: http://rable.ishtar2.iggdrasil.net/find_modification/selecrecord-find_modification

Django Version: 1.11.10

Exception Type: TypeError

Exception Value:

get_prefix() takes at least 2 arguments (1 given)

Exception Location: /srv/ishtar-test/ishtar_common/wizards.py in get_prefix, line 208

Python Executable: /usr/bin/uwsgi-core

Python Version: 2.7.9

Python Path:

['/srv/ishtar-test/',

'.',

'',

'/srv/venv-test/src/django-simple-history',

'/srv/venv-test/lib/python2.7',

'/srv/venv-test/lib/python2.7/plat-x86_64-linux-gnu',

'/srv/venv-test/lib/python2.7/lib-tk',

'/srv/venv-test/lib/python2.7/lib-old',

'/srv/venv-test/lib/python2.7/lib-dynload',

'/usr/lib/python2.7',

'/usr/lib/python2.7/plat-x86_64-linux-gnu',

'/usr/lib/python2.7/lib-tk',

'/srv/venv-test/local/lib/python2.7/site-packages',

'/srv/venv-test/lib/python2.7/site-packages',

'/srv/ishtar/src/django-simple-history',

'/usr/local/lib/python2.7/site-packages',

'/usr/local/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages/PILcompat',

'/usr/lib/pymodules/python2.7']

Server time: dim, 18 Mar 2018 17:43:36

Traceback:

File "/srv/venv-test/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/srv/venv-test/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/srv/venv-test/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/srv/ishtar-test/ishtar_common/wizards.py" in wrappedview

  1. return view_func(request, *args, **kwargs)

File "/srv/venv-test/local/lib/python2.7/site-packages/django/views/generic/base.py" in view

  1. return self.dispatch(request, *args, **kwargs)

File "/srv/ishtar-test/ishtar_common/wizards.py" in dispatch

  1. self.prefix = self.get_prefix(*args, **kwargs)

File "/srv/ishtar-test/ishtar_common/wizards.py" in get_prefix

  1. **kwargs)

Exception Type: TypeError at /find_modification/selecrecord-find_modification

Exception Value: get_prefix() takes at least 2 arguments (1 given)

#2 Updated by Yann Le Jeune over 1 year ago

Same error for a find related to an OPE linked to that account (responsible of that OPE)

#3 Updated by Yann Le Jeune over 1 year ago

That error seems to be general for a not allowed action

Also available in: Atom PDF