Project

General

Profile

Bug #4279

/sessad-dys/personnes/gestion/20949 : forms[prefix].is_valid() None

Added by Jérôme Schneider over 10 years ago. Updated over 10 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Target version:
Start date:
03 February 2014
Due date:
% Done:

100%

Estimated time:
Patch proposed:
No
Planning:

Description

La trace :

Traceback (most recent call last):

  File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
    return view_func(request, *args, **kwargs)

  File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)

  File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 57, in dispatch
    result = super(ServiceViewMixin, self).dispatch(request, **kwargs)

  File "/home/calebasse/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)

  File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 371, in post
    return super(BaseMultiUpdateView, self).post(request, *args, **kwargs)

  File "/home/calebasse/venv/calebasse/calebasse/cbv.py", line 336, in post
    if forms[prefix].is_valid():

KeyError: None

L’environnement WSGI :

<WSGIRequest
path:/sessad-dys/personnes/gestion/20949/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'csrfmiddlewaretoken': [u'8gulDJoBkyZdXqKdUhANxcRjVkeA7Hzr']}>,
COOKIES:{'csrftoken': '8gulDJoBkyZdXqKdUhANxcRjVkeA7Hzr',
 'home-service': 'sessad-dys',
 'sessionid': '3y4d3s40rs9h8yo98dbhw6cb8lqeif2o'},
META:{'CONTENT_LENGTH': '52',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 u'CSRF_COOKIE': u'8gulDJoBkyZdXqKdUhANxcRjVkeA7Hzr',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3',
META:{'CONTENT_LENGTH': '52',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 u'CSRF_COOKIE': u'8gulDJoBkyZdXqKdUhANxcRjVkeA7Hzr',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3',
 'HTTP_CONNECTION': 'close',
 'HTTP_COOKIE': 'csrftoken=8gulDJoBkyZdXqKdUhANxcRjVkeA7Hzr; home-service=sessad-dys; sessionid=3y4d3s40rs9h8yo98dbhw6cb8lqeif2o',
 'HTTP_HOST': 'calebasse.aps42.org',
 'HTTP_REFERER': 'http://calebasse.aps42.org/sessad-dys/personnes/gestion/20949/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0',
 'HTTP_X_FORWARDED_FOR': '192.168.0.25',
 'HTTP_X_FORWARDED_PROTO': 'HTTP/1.1',
 'HTTP_X_FORWARDED_SCHEME': 'http',
 'PATH_INFO': u'/sessad-dys/personnes/gestion/20949/',
 'QUERY_STRING': '',
 'RAW_URI': '/sessad-dys/personnes/gestion/20949/',
 'REMOTE_ADDR': '192.168.0.25',
 'REMOTE_PORT': '80',
 'REQUEST_METHOD': 'POST',
 'SCRIPT_NAME': u'',
 'SERVER_NAME': 'calebasse.aps42.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'gunicorn/18.0',
 'gunicorn.socket': <socket._socketobject object at 0x4f991a0>,
 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f25fdca7270>,
 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x280d598>,
 'wsgi.input': <gunicorn.http.body.Body object at 0x5092b90>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

Associated revisions

Revision 02d4a748 (diff)
Added by Serghei Mihai over 10 years ago

do not trust JS

Closes #4279

History

#1

Updated by Jérôme Schneider over 10 years ago

  • Assignee changed from Jérôme Schneider to Serghei Mihai
#2

Updated by Serghei Mihai over 10 years ago

  • Status changed from Nouveau to Résolu (à déployer)
  • % Done changed from 0 to 100

Appliqué par commit calebasse|commit:02d4a74837073c84b0754d6d3fa0ad95e4789c4a.

#3

Updated by Serghei Mihai over 10 years ago

Appliqué par commit aps42:calebasse|commit:02d4a74837073c84b0754d6d3fa0ad95e4789c4a.

#4

Updated by Mikaël Ates over 10 years ago

  • Target version set to 1.1.3
#5

Updated by Mikaël Ates over 10 years ago

  • Status changed from Résolu (à déployer) to Fermé
  • Patch proposed set to No

Also available in: Atom PDF