Projet

Général

Profil

Actions

Bug #4004

fermé

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

Ajouté par Yann Le Jeune il y a presque 7 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Urgent
Assigné à:
Version cible:
Début:
18 mars 2018
Echéance:
% réalisé:

0%

Temps estimé:
Élément(s):

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.

Mis à jour par Yann Le Jeune il y a presque 7 ans

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 _wrapped_view

  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)

Mis à jour par Yann Le Jeune il y a presque 7 ans

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

Mis à jour par Yann Le Jeune il y a presque 7 ans

That error seems to be general for a not allowed action

Mis à jour par Redmine Admin il y a environ 2 ans

  • Catégorie Forms and wizards supprimé
  • Tracker changé de Anomalie à Bug

Mis à jour par Étienne Loks il y a presque 2 ans

  • Statut changé de Nouveau à Fermé
  • Description mis à jour (diff)
Actions

Formats disponibles : Atom PDF