Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-4437

Analysis is failing to trigger builtin filecontent rules for binaries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • MTA 7.2.0
    • MTA 7.2.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      When running analysis of a binary application in containerless mode; any rules that leverage a builtin `filecontent` condition are not being executed. This is because the exploded binary path is not being searched.

      To reproduce; we need a binary application that has source code which will trigger any builtin rule.

      Example: Use application with `.xml` file present in the source code that will trigger https://github.com/konveyor/rulesets/blob/4198c48c60a0bdff297ff718134bcf8933c8b962/default/generated/eap8/161-javaee-to-jakarta-namespaces.windup.yaml#L19. Run analysis of the application with target `eap8` which should trigger this rule. We could take any application and simply add an xml file with a line in it with the content:
      ```
      http://xmlns.jcp.org/xml/ns/javaee
      ```
      and the rule should be triggered.

              pgaikwad1@redhat.com Pranav Gaikwad
              rhn-engineering-dymurray Dylan Murray
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: