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
  3. MTA-3623

[QE] Verify for ( [CLI] [Analyzer] Analysis on Java application tries to execute .NET rules )

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • MTA 7.1.0
    • None
    • QE-Task
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      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 

       

            ibragins@redhat.com Igor Braginsky
            istein@redhat.com Ilanit Stein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: