Linker regex matching single digit causes bad render for comments and commit messages

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • N/A
    • Affects Version/s: 3.7.0, 3.8.0
    • Component/s: None
    • Severity 3 - Minor
    • 4

      Problem

      If a Linker is set in FishEye with a simple regex that matches a single digit, like

      (?i)[#]*(\d+)

      some Comments and Commit Messages, even not matching the regular expression, get rendered as a combination of the string inltokxyzkdtnhgnsbdf.

      Steps to reproduce

      1. Add a Linker to FishEye like the following:
        <linker><simple regex="(?i)[#]*(\d+)" href="https://www.website.com/${1}" description="Linker"/></linker>
        
      2. Add a comment to a review containing only
        "
      3. The comment gets rendered as:
        inltokxyzkdtnhgnsbdfinltok 0 inltokxyzkdtnhgnsbdfinltok
        

      Workaround

      Avoid the Regex to be matched by single digit.
      In the example provided is sufficient to remove the *.

      (?i)[#](\d+)

            Assignee:
            Unassigned
            Reporter:
            Daniele Carcasole (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: