Project

General

Profile

Actions

Bug #4004

closed

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

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

Status:
Fermé
Priority:
Urgent
Assignee:
Target version:
Start date:
18 March 2018
Due date:
% Done:

0%

Estimated time:
É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.

Actions #1

Updated by Yann Le Jeune over 6 years 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 _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)

Actions #2

Updated by Yann Le Jeune over 6 years ago

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

Actions #3

Updated by Yann Le Jeune over 6 years ago

That error seems to be general for a not allowed action

Actions #4

Updated by Redmine Admin almost 2 years ago

  • Category deleted (Forms and wizards)
  • Tracker changed from Anomalie to Bug
Actions #5

Updated by Étienne Loks over 1 year ago

  • Status changed from Nouveau to Fermé
  • Description updated (diff)
Actions

Also available in: Atom PDF