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

[CLI] [Analyzer] Analysis on Java application tries to execute .NET rules

XMLWordPrintable

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

      None

      Show
      None
    • False
    • None

      Description of problem:

      When the user tries to perform an analysis on a Java application, mta-cli tries to execute rules from the dotnet provider, resulting in errors in the analysis log.

      Version-Release number of selected component (if applicable): mta-operator-bundle-container-7.1.0-43 

      How reproducible: Always 

      Steps to Reproduce:
      1. Execute the following command (the app is attached to this bug)

       

      mta-cli-710-43 analyze --input ~/apps/jee-example-app-1.0.0.ear --output ~/Desktop/report-delete --overwrite --source weblogic --target eap7
      

      2. Wait until the analysis finishes and inspect the logs.

       

      Actual results:

      The following errors can be found in the analysis.log (you can find an example attached)

      time="2024-08-01T16:38:38Z" level=error msg="failed parsing conditions for provider" capability=referenced error="unable to find provider for: dotnet" file=/opt/rulesets/dotnet/example.yaml logger=parser provider=dotnet ruleID=removed-dotnet-framework-00000
      time="2024-08-01T16:38:38Z" level=error msg="failed parsing conditions for provider" capability=referenced error="unable to find provider for: dotnet" file=/opt/rulesets/dotnet/generated.yaml logger=parser provider=dotnet ruleID=dotnet-rules-converted-00001
      time="2024-08-01T16:38:39Z" level=error msg="unable to parse all the rules for ruleset" error="unable to find provider for: dotnet\nunable to find provider for: dotnet\nunable to find provider for: dotnet\nunable to find provider for: dotnet\nunable to find provider for: dotnet\nunable to find provider for: dotnet" file=/opt/rulesets/

       

      Expected results:

      When an analysis does not use certain provider the analysis should not trigger its rules 

       

            rh-ee-dzager David Zager
            rh-ee-abrugaro Alejandro Brugarolas
            Igor Braginsky Igor Braginsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: