Jira issue parser bails on space after URL

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 0.9
    • Affects Version/s: None
    • Component/s: bots
    • None

      When a JiraIssue tries to parse comments for URLs, the parser can fail if there is a space on the line following the URL. This throws a RuntimeException and causes the whole work item to fail.

      See: org.openjdk.skara.issuetracker/org.openjdk.skara.issuetracker.jira.JiraIssue.parseWebLinkComment(JiraIssue.java:391)

      We need to fix the regexp and/or trim the resulting string before giving it to URI constructor. We should also catch any parse exception and log it on the spot as a failure to parse a URL in a comment shouldn't cause processing of an issue to fail completely.

            Assignee:
            Robin Westberg (Inactive)
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: