Clicking "Confluence Page" link for different site displays 401 Error

XMLWordPrintable

    • 6
    • Severity 3 - Minor
    • 1

      Issue Summary

      When a Jira Site (Site A) is connected to a Confluence Site (Site B) with a different URL, directly clicking on those links throws a 401 Error. However, clicking the "Preview" pulls up the requested page. 

      In this scenario the Products are on different sites and are connected via App Link. 

      Steps to Reproduce

      1. Create a site (Site A)
        1. Activate Jira on that site
      2. Create a different site (Site B)
        1. Activate Confluence on that site
      3. Create an Application Link between Sites A and B
      4. In a Jira issue create a link to a page on Confluence
      5. Directly click that link to the Confluence page
        1. The exception: "Encountered a "401 - Unauthorized" error while loading this page."

      Expected Results

      The linked Confluence page is displayed and preview is visible in the frame. 

      Actual Results

      When directly clicking the link. A 401 Error appears and the payload does not render. 

      In the logs, we see that the request is pointed back to Site A (where no Confluence product exists) and not to the actual destination on Site B.

      https://<SITE A>.atlassian.net/wiki/spaces/<REDACTED>?parentProduct=JSW&initialAllowedFeatures=byline-contributors.byline-extensions.page-comments.page-reactions.inline-comments&themeState=dark%253Adark%2520light%253Alight%2520spacing%253Aspacing%2520colorMode%253Alight&embeddedConfluenceSource=jiraIssueViewLinkedMentionedPage&locale=en-US  

      However, clicking the 'Preview' button on the same link works as expected. 

      In the logs, we see that it is pointing to the intended URL. 

      https://smart-links-cc-embed.prod.atl-paas.net/?hostname=<SITE B>.atlassian.net&contentId=<REDACTED>&parentProduct=smartlink&enablePageComments=true&enableInlineComments=true&userId=6064344200b79f0070c8fa5a&userInfo=atlassianAccount&spaceKey=DP&themeMode=light  

      As there is no Confluence product on Site A it appears the system is defaulted to the source site. 

      Workaround

      Users can click the 'Preview' button in the tool tip or can click the direct link in the error popup. 

        1. image-2024-03-26-07-57-12-724.png
          845 kB
          Emrah Kocaman
        2. Non-Working - Direct Click.png
          222 kB
          Andy Launer
        3. Workaround.png
          34 kB
          Andy Launer
        4. Working - Click Preview.png
          286 kB
          Andy Launer

            Assignee:
            Michael Kulinski
            Reporter:
            Andy Launer (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: