Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1879

XmlFile condition handling XPath and file name patterns

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.1.Final
    • 4.0.0.Final
    • None
    • None
    • Sprint 42

    Description

      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:

      1. jboss-service.xml (it does NOT match the XPath condition)
      2. 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.

      Attachments

        Activity

          People

            mrizzi@redhat.com Marco Rizzi
            mrizzi@redhat.com Marco Rizzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: