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

[Ruleset] Pattern field regexs are failing in multiple rules

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      When the "pattern" property of a rule contains a Regex with the following structure, the analyzer is unable to parse it and the rule is ignored.

      (?P<something> 

      Version-Release number of selected component (if applicable): upstream 

      How reproducible: Always 

      Steps to Reproduce:
      1. Execute an analysis using kantra
      2. Inspect the analysis log

      Actual results:

       There are multiple log lines containing the following error for different rules

       

      level=error msg="unable to get custom variables" error="error parsing regexp: invalid named capture: `(?P<method-names>`" logger=parser ruleID=the-rule-id

      Expected results:

      The analyzer should be able to parse the rule correctly. 

      Additional info:

      Attached you'll find an analysis log

      This bug could be the cause of https://issues.redhat.com/browse/MTA-1313

            [MTA-1327] [Ruleset] Pattern field regexs are failing in multiple rules

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Migration Toolkit for Applications bug fix and enhancement update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:0599

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Migration Toolkit for Applications bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:0599

            This issue is no longer reproducible in the latetst build of Kantra

             

            Alejandro Brugarolas added a comment - This issue is no longer reproducible in the latetst build of Kantra  

            We recently fixed this issue in our rules. This will be fixed with image rebuild.

            Pranav Gaikwad added a comment - We recently fixed this issue in our rules. This will be fixed with image rebuild.

              pgaikwad1@redhat.com Pranav Gaikwad
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: