HomeClusterLabs Projects

High: fix infloop when no schema validates on update_validation

Description

High: fix infloop when no schema validates on update_validation

Test case:
$ ./autogen.sh; ./configure; make # if not already
$ sed -i.orig 's|"promote"|"infloop"|' \

pengine/test10/use-after-free-merge.xml

$ PCMK_schema_directory=$(pwd)/xml \

tools/crm_simulate -x pengine/test10/use-after-free-merge.xml -S

BEFORE:
Entity: line 54: element rsc_colocation: Relax-NG validity error :
Invalid attribute then-action for element rsc_order
Entity: line 49: element rsc_location: Relax-NG validity error : Element
constraints has extra content: rsc_location
[...infloop...]

AFTER:
Entity: line 54: element rsc_colocation: Relax-NG validity error :
Invalid attribute then-action for element rsc_order
Entity: line 49: element rsc_location: Relax-NG validity error : Element
constraints has extra content: rsc_location
[several times]
<error message>

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on Aug 12 2016, 8:13 AM
Parents
rPd83ffab1e6ac: Med: xml.c: internal self-or-less reference inflicted infloop guard
Branches
Unknown
Tags
Unknown

Event Timeline