Projet

Général

Profil

Evolution #6202

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

Ajouté par Joël Cuissinat il y a plus de 10 ans. Mis à jour il y a plus de 10 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Début:
07/10/2013
Echéance:
11/10/2013
% réalisé:

100%

Temps estimé:
0.33 h
Temps passé:
Distribution:
EOLE 2.4

Description

Le test actuel est trop strict :)

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


Demandes liées

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

Révisions associées

Révision 9954e8f7 (diff)
Ajouté par Emmanuel GARETTE il y a plus de 10 ans

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

Historique

#1 Mis à jour par Joël Cuissinat il y a plus de 10 ans

  • Version cible changé de Eole 2.4-alpha2 à Eole 2.4-beta1

#2 Mis à jour par Emmanuel GARETTE il y a plus de 10 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

#3 Mis à jour par Emmanuel GARETTE il y a plus de 10 ans

  • Echéance mis à 11/10/2013
  • Début mis à 07/10/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 Mis à jour par Joël Cuissinat il y a plus de 10 ans

  • Statut changé de Résolu à Fermé

OK

Formats disponibles : Atom PDF