Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7225

Relative location might be not correctly resolved in RegexBasedPathToMetadataInferrer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 5.6
    • None
    • None

    Description

      There is bug in RegexBasedPathToMetadataInferrer#relativeLocation method in catch block.
      If string do not contain all groups specified in regexp pattern, matcher.end(matcher.groupCount()) returns 0 instead of index number after last group. It is caused by matcher.groupCount() that returns number of all groups specified in pattern, but
      matcher.end([groupNumber]) looks into array where are present only groups that exists in parsed string.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              efochr Evzen Fochr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD