-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Final
-
None
-
None
When executing an XML rule like the following one:
<rule id="rule-id-001"> <when> <xmlfile matches="//class-loading/loader-repository" in="jboss-{type}.xml"/> </when> <perform> <!--whatever--> </perform> <where param="type"> <matches pattern="(web|service)" /> </where> </rule>
w/ conditions both on matching an XPath and a file name w/ a parameter, the rule's execution can fail if there are more files that match the file name pattern but not the XPath condition.
For example, suppose we have two file to analyze:
- jboss-service.xml (it does NOT match the XPath condition)
- jboss-web.xml (it matches the XPath condition)
If jboss-service.xml is analyzed before jboss-web.xml then the latter won't match even if it should.