-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 4.0.0.Final
-
Fix Version/s: 4.0.1.Final
-
Component/s: Rule execution - XML based, Rules Engine
-
Labels:None
-
Sprint:Sprint 42
-
Story Points:5
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.