Project

General

Profile

Tâche #21450

Scénario #21165: Traitement express MEN (37-39)

Un valid_enum calculé dont le calcul retourne une liste vide plante

Added by Lionel Morin about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/27/2015
Due date:
% Done:

100%

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

Description

Erreur reproductible avec le XML suivant :

    <variables>
        <family name='test'>
            <variable name='enum' type='string' description='valid enum'/>
        </family>
    </variables>
    <constraints>
        <check name="valid_enum" target="enum">
            <param>[]</param>
        </check>
    </constraints>

Renvoie :

list index out of range

Associated revisions

Revision ac974220 (diff)
Added by Emmanuel GARETTE about 2 years ago

Check valid_enum for variable:

- variable must be known
- variable must not "oui/non" type (or other special type)
- valid_enum must not be empty

ref #21450

Revision d6cbc309 (diff)
Added by Emmanuel GARETTE about 2 years ago

remove swap file (ref #21450)

Revision 4c3c033d (diff)
Added by Joël Cuissinat about 2 years ago

Update translation

Ref: #21450

Revision d910e728 (diff)
Added by Joël Cuissinat about 2 years ago

Suppression valid_enum sur variable inexistante dans 30_sphynx.xml

Ref: #21450

Revision b5431459 (diff)
Added by Joël Cuissinat about 2 years ago

Fix translation formating + update

Ref: #21450

Revision ad8d8010 (diff)
Added by Joël Cuissinat about 2 years ago

Suppression valid_enum sur variable inexistante dans 30_sphynx.xml

Ref: #21450

Cherry-picked from conf-sphynx:d910e7289

History

#1 Updated by Joël Cuissinat about 2 years ago

  • Description updated (diff)
  • Estimated time set to 2.50 h
  • Remaining (hours) set to 2.5

#2 Updated by Emmanuel GARETTE about 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE about 2 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.5 to 0.25

#4 Updated by Scrum Master about 2 years ago

  • Status changed from En cours to Résolu

#5 Updated by Daniel Dehennin about 2 years ago

  • Description updated (diff)
  • Remaining (hours) changed from 0.25 to 0.0

#6 Updated by Daniel Dehennin about 2 years ago

Test OK avec le paquet creole 2.6.2-34 et les dictionnaires suivants.

Valid enum vide

Dictionnaire de test :

<creole>

    <files />

    <containers />

    <variables>

        <family name='général'>
            <variable name='test_enum' type='string' />
        </family>

    </variables>

    <constraints>
        <check name='valid_enum' target='test_enum'>
            <param>[]</param>
        </check>
    </constraints>

    <help />
</creole>

Renvoi:

Erreur - 500 - INTERNAL SERVER ERROR
empty valid enum is not allowed for variable test_enum

Type oui/non

Dictionnaire de test :

<creole>

    <files />

    <containers />

    <variables>

        <family name='général'>
            <variable name='test_enum' type='oui/non' />
        </family>

    </variables>

    <constraints>
        <check name='valid_enum' target='test_enum'>
            <param>['test1', 'test2', 'test3']</param>
        </check>
    </constraints>

    <help />
</creole>

Renvoi:

Erreur - 500 - INTERNAL SERVER ERROR
cannot set valid enum for variable with type oui/non

#7 Updated by Daniel Dehennin about 2 years ago

  • Status changed from Résolu to Fermé

#8 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Fermé to Résolu

#9 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF