Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39419

JIRA issues macro from multiple instances have errors when context paths overlap

    XMLWordPrintable

Details

    Description

      Summary

      In Confluence when there are multiple linked JIRA instances and the URL context paths are substrings of each other (e.g. http://machine.company.com.au/jira1 and http://machine.company.com.au/jira12), pasting in a JIRA URL from the longer URL (e.g. /jira12) onto a page does not display correctly on save.

      Environment

      Confluence 5.8.9 and both JIRA 6.4.11 instances:

      • are accessed through a reverse proxy
      • have the same domain name and port for their application links
      • are accessed through context paths

      Steps to Reproduce

      1. Set up one Confluence instance, and 2 separate JIRA instances listening on different ports, e.g.
      2. Set up a reverse proxy such that
        http://machine.company.com.au/confluence points to http://machine.company.com.au:8090/confluence
        http://machine.company.com.au/jira1 points to http://machine.company.com.au:8080/jira1
        http://machine.company.com.au/jira12 points to http://machine.company.com.au:8081/jira12
      3. In Confluence, go to General Configuration > Application Links
      4. Add application link to http://machine.company.com.au/jira1
      5. Add application link to http://machine.company.com.au/jira12
      6. Make http://machine.company.com.au/jira1 Primary if not already
      7. Create a issue in both JIRA instances using different keys
      8. Create a page in Confluence and paste in the URL for each JIRA Issue
      9. Save the page

      Expected Results

      Both JIRA issues display correctly as

      ONE-1 - this is jira1 TO DO
      TWO-1 - this is jira12 TO DO
      

      Actual Results

      The page shows an error for http://machine.company.com.au/jira12/browse/TWO-1

      JIRA Issues Macro: Data cannot be retrieved due to an unexpected error

      Workaround

      One work around per issue macro is

      1. Edit the page
      2. On the broken JIRA issue, click edit
      3. From the dropdown for the JIRA instance list, pick the correct instance the issue is on
      4. Click the search button to location to issue
      5. Click Insert

      A more permanent workaround, if there are only 2 JIRA instances that have a shared URL

      1. Go to General Configuration > Application Links
      2. Make the longer URL, here http://machine.company.com.au/jira12 Primary

      Attachments

        1. Selection_002.png
          Selection_002.png
          21 kB
        2. Selection_003.png
          Selection_003.png
          19 kB

        Issue Links

          Activity

            People

              tthanhdang Tung Dang
              jrichards@atlassian.com James Richards
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: