Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13660

The error message in Jira issue preview in Bitbucket is misleading in case of the user doesn't have access to Jira

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 5.15.3, 5.16.11, 7.21.9, 8.8.0
    • Integration - JIRA

    Description

      Issue Summary

      Jira issue preview in Bitbucket has misleading error message in case of the user doesn't have access to project in Jira or doesn't have Jira Application role.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Install Bitbucket and Jira supported versions
      2. Connect both applications to the same user management (or use Jira for user management)
      3. Link them with application links setting OAuth with impersonation
      4. Create a user that have full access to Bitbucket but no application groups or roles in Jira
      5. In Bitbucket create a new commit mentioning one of the Jira issues keys
      6. Click on Jira issue key in Bitbucket to open Jira Issue preview

      Expected Results


      Actual Results



      The below exception is thrown in the atlassian-bitbucket.log file:

      2023-02-10 15:06:04,926 WARN  [http-nio-7990-exec-10] ie @1J4YJWPx906x2856x0 1jxovwc 172.29.218.145,10.108.15.167 "GET /rest/jira-integration/latest/issues HTTP/1.1" c.a.i.i.jira.DefaultJiraService Problem communicating with Jira instance 'InstEnv Jira - 2' at 'https://instenv-73975-273y.instenv.internal.atlassian.com'. Error: No content to map to Object due to end of input
      

      Workaround

      Currently there is no known workaround for this behaviour. If the user report such issue please make sure that the user has access to Jira and can open the referenced Jira issue key.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ashaleev Anton Shaleev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: