Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-981

Jira issue parser bails on space after URL

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: