-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
5.15.3, 5.16.11, 7.21.9, 8.8.0
-
3
-
Severity 3 - Minor
-
1
-
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
- Install Bitbucket and Jira supported versions
- Connect both applications to the same user management (or use Jira for user management)
- Link them with application links setting OAuth with impersonation
- Create a user that have full access to Bitbucket but no application groups or roles in Jira
- In Bitbucket create a new commit mentioning one of the Jira issues keys
- 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.
- is caused by
-
BSERV-9903 JIRA integration doesn't handle OAuth token rejection cleanly
- Gathering Impact
- is related to
-
JSDSERVER-15461 When Jira Service Management is installed the wrong HTTP status code is sent when an unauthenticated request is made to Jira Core/Software REST API endpoints
- Gathering Impact
-
BSERV-13662 The error message in Jira issue preview in Bitbucket is misleading for the non-existent issue keys in case of user doesn't have access to at least one Jira instances
- Long Term Backlog
- relates to
-
BSERV-10860 Unknown error when clicking on Jira issue
- Closed