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

Windup xml rule definition interferring for more than one where named parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0.Final
    • Fix Version/s: None
    • Component/s: Rules Engine
    • Labels:
    • Sprint:
      Priority Backlog
    • Story Points:
      40

      Description

      Windup xml rule definition of where named patterns are interfering
      if there is not used where parameter it works fine, otherwise it is not triggered for all occurrences when second javaclass condition should be triggered.

      Example of rule:

      ...
      <rule id="jni-native-code-00001">
          <when>
              <or>
                  <javaclass references="java.lang.System.{systemNativeMethods}({*})">
                      <location>METHOD_CALL</location>
                  </javaclass>
                  <javaclass references="java.lang.Runtime.{runtimeNativeMethods}({*})">
                      <location>METHOD_CALL</location>
                  </javaclass>
              </or>
          </when>
          <perform>
              <hint title="Application uses native libraries" effort="1" category-id="potential">
                  <message>The application uses native libraries.</message>
              </hint>
          </perform>
          <where param="systemNativeMethods">
              <matches pattern="(load|loadLibrary|mapLibraryName)"/>
          </where>
          <where param="runtimeNativeMethods">
              <matches pattern="(load|loadLibrary)"/>
          </where>
      </rule>
       
      ..
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                manaRH Marek Novotny
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: