Projet

Général

Profil

Anomalie #4004

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

Ajouté par Yann Le Jeune il y a environ un an. Mis à jour il y a environ un an.

Statut:
Nouveau
Priorité:
Urgent
Assigné à:
Catégorie:
Forms and wizards
Version cible:
Début:
03/18/2018
Echéance:
% réalisé:

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.

Historique

#1 Mis à jour par Yann Le Jeune il y a environ un an

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 Mis à jour par Yann Le Jeune il y a environ un an

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

#3 Mis à jour par Yann Le Jeune il y a environ un an

That error seems to be general for a not allowed action

Formats disponibles : Atom PDF