Project

General

Profile

Anomalie #5847

Plantage si on essaie d'entrer une "revprox_url" invalide

Added by Joël Cuissinat almost 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
08/19/2013
Due date:
08/23/2013
% Done:

100%

Estimated time:
0.75 h
Spent time:
Distribution:
EOLE 2.4

Description

Exception on /variables/revprox_url [PUT]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1504, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1264, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1262, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1248, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 125, in update_variable
    return make_error_response(str(err))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

Le test en cause est le suivant :
        <check name='valid_regexp' target='revprox_url'>
            <param>^http</param>
            <param name='err_msg'>L'adresse doit débuter par http ou https</param>
        </check>

Associated revisions

Revision 9f6816b1 (diff)
Added by Joël Cuissinat almost 7 years ago

  • creole/eosfunc.py : fix unicode error in valid_regexp()

Fixes #5847 @30m

History

#1 Updated by Emmanuel GARETTE almost 7 years ago

Il est nécessaire de modifier la fonction eosfunc pour que le message d'erreur retourne de l'unicode.

#2 Updated by Joël Cuissinat almost 7 years ago

  • Target version deleted (Eole 2.4-alpha)

#3 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat almost 7 years ago

  • Target version set to Eole 2.4-alpha2

#5 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Résolu to Fermé

OK, en plus ce n'est plus d’actualité...

Cf. nouvelles problématiques : #6202 :)

Also available in: Atom PDF