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

Jira issue parser bails on space after URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 0.9
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: