Project

General

Profile

Evolution #6202

Le type "web_address" devrait accepter les valeurs du type "http://1.1.1.1"

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

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
10/07/2013
Due date:
10/11/2013
% Done:

100%

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

Description

Le test actuel est trop strict :)

valeur invalide pour l'option revprox_url : nom de domaine invalide


Related issues

Related to creole - Evolution #6167: Ajout des validateurs et finalisation des nouveaux types Creole Fermé 09/30/2013 10/04/2013
Related to creole - Evolution #6164: Refactoring des types Creole Fermé 09/30/2013

Associated revisions

Revision 9954e8f7 (diff)
Added by Emmanuel GARETTE over 7 years ago

autoriser http://1.1.1.1 et http://mamachine dans web_address (fixes #6202)

History

#1 Updated by Joël Cuissinat over 7 years ago

  • Target version changed from Eole 2.4-alpha2 to Eole 2.4-beta1

#2 Updated by Emmanuel GARETTE over 7 years ago

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

#3 Updated by Emmanuel GARETTE over 7 years ago

  • Due date set to 10/11/2013
  • Start date set to 10/07/2013

Avant modification :

# python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from creole.loader import creole_loader
>>> c=creole_loader(rw=True)
>>> c.creole.general.url_maj_blacklist = 'http://1.1.1.1/maj'
Traceback (most recent call last):
[..]
ValueError: valeur invalide pour l'option url_maj_blacklist : nom de domaine invalide
>>> c.creole.general.url_maj_blacklist = 'http://mamachine/maj'
Traceback (most recent call last):
[..]
ValueError: valeur invalide pour l'option url_maj_blacklist : nom de domaine invalide, doit avoir un point
>>> c.creole.general.url_maj_blacklist = 'http://mamachine.com/maj'
>>> c.creole.general.url_maj_blacklist = 'mamachine.com/maj'
Traceback (most recent call last):
[..]
ValueError: valeur invalide pour l'option url_maj_blacklist : URL invalide, devrait démarré avec http:// ou https://
>>>

Après modification :

# python
Python 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from creole.loader import creole_loader
>>> c=creole_loader(rw=True)
>>> c.creole.general.url_maj_blacklist = 'http://1.1.1.1/maj'
>>> c.creole.general.url_maj_blacklist = 'http://mamachine/maj'
>>> c.creole.general.url_maj_blacklist = 'http://mamachine.com/maj'
>>> c.creole.general.url_maj_blacklist = 'mamachine.com/maj'
Traceback (most recent call last):
[..]
ValueError: valeur invalide pour l'option url_maj_blacklist : URL invalide, devrait démarré avec http:// ou https://
>>>

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

  • Status changed from Résolu to Fermé

OK

Also available in: Atom PDF