Tâche #14479
Distribution EOLE - Scénario #14473: Traitement express (01-03)
Un devoir avec des accents provoque une erreur serveur
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Remaining (hours):
0.0
Description
Traceback sur le serveur dans /var/log/eoleflask :
==> eop.log <== 2015-12-21 12:13:32,721: eop - Exception on /api/securename/dëvôïr-bùggé [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 167, in decorated_function current_app.logger.debug(' mode: {0}, current_url: {1}'.format(mode, request.url)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 55: ordinal not in range(128) ==> gunicorn-eoleapps-access.log <== "192.168.230.141 - - [21/Dec/2015:12:13:32] "GET /eoleapps/eop/api/securename/d%C3%ABv%C3%B4%C3%AFr-b%C3%B9gg%C3%A9 HTTP/1.1" 500 291 "https://scribe.ac-test.fr/eoleapps/eop/documents" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:43.0) Gecko/20100101 Firefox/43.0"
Associated revisions
Correction d'un problème d'encodage (ref #14479 @2h45)
History
#1 Updated by Lionel Morin almost 8 years ago
- Description updated (diff)
#2 Updated by Lionel Morin almost 8 years ago
- Tracker changed from Demande to Tâche
- Parent task set to #14473
#3 Updated by Lionel Morin almost 8 years ago
- Assigned To set to Lionel Morin
#4 Updated by Lionel Morin almost 8 years ago
- Estimated time set to 3.00 h
- Remaining (hours) set to 3.0
#5 Updated by Lionel Morin almost 8 years ago
- Status changed from Nouveau to En cours
#6 Updated by Lionel Morin almost 8 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 3.0 to 0.25
#7 Updated by Lionel Morin almost 8 years ago
Pour tester rapidement :
- sur un aca scribe 2.5.2
- aller sur https://scribe.ac-test.fr/eoleapps/eop/documents avec le compte admin
- taper un nom de référence du devoir avec accent
- cliquer hors du champ pour qu'il perde le focus et envoie une requête
- vérifier dans /var/log/eoleflask/eop.log
#8 Updated by Lionel Morin almost 8 years ago
- Status changed from En cours to Résolu
#9 Updated by Laurent Flori over 7 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.25 to 0.0