Jira integration generates invalid links

Tavis Elliott avatarTavis Elliott created an issue

I committed a change which had a Jira ticket # in it. The email that was delivered looked like this:

BIIT-33405">BIIT-33405

Both of the strings "BIIT-33405" were hyperlinks, but the first one doesn't go anywhere, while the second one is correct.

View source shows this:

jiraID: <a target="_blank" href="https://jira.apptio.lan/browse/&lt;a target=" _blank?="" href="https://jira.apptio.lan/browse/BIIT-33405">BIIT-33405</a>&quot;&gt;<a target="_blank" href="https://jira.apptio.lan/browse/BIIT-33405">BIIT-33405</a></a>

It looks like the code that replaces "BIIT-33405" with a hyperlink is being executed twice.

Comments (11)

  1. Tavis Elliott

    I just noticed that it doesn't seem to happen every time. It happens MOST of the time, but there is at least one email where it seems to have worked ok.

  2. Tavis Elliott

    No, the entire description is:

    Prevent cancellation of a request while it is in the middle of a journal replay.
    
    Reviewed by: xxxxx
    jiraID: BIIT-33405
    
  3. Tavis Elliott

    I can't get the Jira plugin to modify the notify emails in my dev environment (mvn scmp:run) at all. Does the user need to have Jira credentials for the link to be updated in the email?

  4. Tavis Elliott

    Marking this invalid, we've updated to the latest version of the notify plugin, and with my changes to put commit messages inside <pre></pre>, this doesn't reproduce.

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.