Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-7296

IMCF Icons breaks when Application Link doesn't match Jira's Base url

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 4.16.0
    • None

      Issue Summary

      When you set up the application link between Confluence and Jira Service Management, and use this application link for the Insight Macros app in Confluence if the base URL of Jira doesn't match the application link URL, the icons of the table breaks.

      Steps to Reproduce

      1. Deploy Jira and Confluence
      2. Integrate both through Application Links
      3. Add the Insight Macro to a Confluence page
      4. Change Jira's base URL and don't update the reciprocal application link URL in Confluence

      Expected Results

      The icons are properly displayed on the page.

      Actual Results

      The macros work as expected, but the icon breaks. The app tries to append both URLs in Jira's side, which uses the 'jira-proxy' tool of the plugin.

      Any differences between the base URL and the application link base URLs are appended, for example below:


      A stack trace is logged when accessing the icon URL where we can clearly see the URLs being appended:

      <status-code>500</status-code>
      <message>Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48</message>
      <stack-trace>java.lang.IllegalArgumentException: Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48 at
      

      Workaround

      Set both Jira base URL and the application link URL to be the same.

        1. screenshot-1.png
          54 kB
          Rodrigo Baldasso
        2. Screen Shot 2021-04-14 at 13.03.35.png
          64 kB
          Rodrigo Baldasso
        3. Screen Shot 2021-04-14 at 13.03.43.png
          80 kB
          Rodrigo Baldasso
        4. Screen Shot 2021-04-14 at 13.07.11.png
          255 kB
          Rodrigo Baldasso

            [JSDSERVER-7296] IMCF Icons breaks when Application Link doesn't match Jira's Base url

            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 556319 ]
            Nils Olsson (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS New: 3
            Nils Olsson (Inactive) made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Nils Olsson (Inactive) made changes -
            Assignee New: Nils Olsson [ d7d2d4ec7e3b ]
            Nils Olsson (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: In Progress [ 3 ]
            Rodrigo Baldasso made changes -
            Attachment New: screenshot-1.png [ 402323 ]
            Rodrigo Baldasso made changes -
            Description Original: h3. Issue Summary

            When you set up the application link between Confluence and Jira Service Management, and use this application link for the Insight Macros app in Confluence if the base URL of Jira doesn't match the application link URL, the icons of the table breaks.

            h3. Steps to Reproduce
             # Deploy Jira and Confluence
             # Integrate both through Application Links
             # Add the Insight Macro to a Confluence page
             # Change Jira's base URL and don't update the reciprocal application link URL in Confluence

            h3. Expected Results

            The icons are properly displayed on the page.

            h3. Actual Results

            The app tries to append both URLs in Jira's side, which uses the 'jira-proxy' tool of the plugin.

            Any differences between the base URL and the application link base URLs are appended, for example below:

             !Screen Shot 2021-04-14 at 13.03.43.png|thumbnail!
             !Screen Shot 2021-04-14 at 13.03.35.png|thumbnail!

            A stack trace is logged when accessing the icon URL where we can clearly see the URLs being appended:

            {code}
            <status-code>500</status-code>
            <message>Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48&lt;/message>
            <stack-trace>java.lang.IllegalArgumentException: Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48 at
            {code}
             !Screen Shot 2021-04-14 at 13.07.11.png|thumbnail!

            h3. Workaround

            Set both Jira base URL and the application link URL to be the same.
            New: h3. Issue Summary

            When you set up the application link between Confluence and Jira Service Management, and use this application link for the Insight Macros app in Confluence if the base URL of Jira doesn't match the application link URL, the icons of the table breaks.

            h3. Steps to Reproduce
             # Deploy Jira and Confluence
             # Integrate both through Application Links
             # Add the Insight Macro to a Confluence page
             # Change Jira's base URL and don't update the reciprocal application link URL in Confluence

            h3. Expected Results

            The icons are properly displayed on the page.

            h3. Actual Results

            The macros work as expected, but the icon breaks. The app tries to append both URLs in Jira's side, which uses the 'jira-proxy' tool of the plugin.

            Any differences between the base URL and the application link base URLs are appended, for example below:

             !Screen Shot 2021-04-14 at 13.03.43.png|thumbnail!
             !Screen Shot 2021-04-14 at 13.03.35.png|thumbnail!

            A stack trace is logged when accessing the icon URL where we can clearly see the URLs being appended:

            {code}
            <status-code>500</status-code>
            <message>Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48&lt;/message>
            <stack-trace>java.lang.IllegalArgumentException: Refusing to sign non-normalized URL: http://jiraservicedesk:8831/j831http://localhost:8831/j831/rest/insight/1.0/objecttype/2/icon.png?size=48 at
            {code}
             !Screen Shot 2021-04-14 at 13.07.11.png|thumbnail!

            h3. Workaround

            Set both Jira base URL and the application link URL to be the same.
            Bugfix Automation Bot made changes -
            Support reference count New: 2
            Deyves (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 543719 ]

              d7d2d4ec7e3b Nils Olsson (Inactive)
              rbaldasso Rodrigo Baldasso
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: