Project

General

Profile

Tâche #12904

Scénario #12804: EOP : plantage de la partie devoir

Étude (et correction) du problème

Added by Lionel Morin over 5 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
08/31/2015
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

2015-08-31 16:46:41,763: eop - Exception on /documents [GET]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/authclient.py", line 193, in decorated_function
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/eop/modules/documents/documents.py", line 21, in show
    form = DocumentsForm(request.form)
  File "/usr/lib/python2.7/dist-packages/wtforms/form.py", line 172, in __call__
    return type.__call__(cls, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/flaskext/wtf/form.py", line 71, in __init__
    super(Form, self).__init__(formdata, obj, prefix, csrf_context=csrf_context, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/wtforms/ext/csrf/form.py", line 20, in __init__
    self.csrf_token.current_token = self.generate_csrf_token(csrf_context)
  File "/usr/lib/python2.7/dist-packages/flaskext/wtf/form.py", line 76, in generate_csrf_token
    return super(Form, self).generate_csrf_token(csrf_context)
  File "/usr/lib/python2.7/dist-packages/wtforms/ext/csrf/session.py", line 51, in generate_csrf_token
    hmac_csrf = hmac.new(self.SECRET_KEY, csrf_build.encode('utf8'), digestmod=sha1)
  File "/usr/lib/python2.7/hmac.py", line 133, in new
    return HMAC(key, msg, digestmod)
  File "/usr/lib/python2.7/hmac.py", line 72, in __init__
    self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode

Associated revisions

Revision 2444c3ae (diff)
Added by Lionel Morin over 5 years ago

Encodage utf8 de la SECRET_KEY dans le loader (ref #12904 @4h)

History

#1 Updated by Lionel Morin over 5 years ago

  • Assigned To set to Lionel Morin
  • Estimated time set to 3.00 h
  • Remaining (hours) set to 3.0

#2 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Lionel Morin over 5 years ago

  • Status changed from En cours to Nouveau
  • Remaining (hours) changed from 3.0 to 0.5

#4 Updated by Lionel Morin over 5 years ago

  • Status changed from Nouveau to En cours

#5 Updated by Lionel Morin over 5 years ago

  • Subject changed from Étude du problème to Étude (et correction) du problème

#6 Updated by Lionel Morin over 5 years ago

  • Description updated (diff)

#7 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

#8 Updated by Fabrice Barconnière over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 0.5 to 0.0

Vérif du code uniquement

#9 Updated by Fabrice Barconnière over 5 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF