-
Bug
-
Resolution: Timed out
-
Low
-
None
-
5.15.0.1
-
1
-
Severity 3 - Minor
-
Summary
When Bamboo fail to perform OAuth application link request to Bitbucket Server, it is logging an incorrect error message
Steps to Reproduce
- Create Application Link between Bitbucket Server and Bamboo
- Create a Bamboo build plan to build Bitbucket Server repository
- Run the build to check the integration is successfully created
- The build status is showing in Bitbucket Server repository commit list
- Disable the Incoming OAuth authentication from Bitbucket Server side
- Run the build in Bamboo again
Expected Results
There will be an error message about the OAuth connection with Bitbucket Server
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
2017-03-13 15:51:07,041 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [BitbucketServerBuildStatusUpdater] Sending build notification to Stash (build key: BAM-STAS-10, repository: stash-master) 2017-03-13 15:51:07,076 WARN [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [RestCallHelper] Failed to execute application link request. Server: http://localhost:7990 Method: POST Url: rest/build-status/latest/commits/0af8809b2b01765ab469a826a56062b4b86ff48e Response: 401 Unauthorized Errors: Errors[errorMessages=[Request to JIRA failed. Returned with 401. Response: oauth_problem=consumer_key_unknown],errors={}] 2017-03-13 15:51:07,076 WARN [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [BitbucketServerBuildStatusUpdater] Failed to store build status against Stash instance Bitbucket, reason: com.atlassian.bamboo.jira.rest.JiraRestResponse@610857be[statusCode=401,statusMessage=Unauthorized,errors=Errors[errorMessages=[Request to JIRA failed. Returned with 401. Response: oauth_problem=consumer_key_unknown],errors={}],body=oauth_problem=consumer_key_unknown,entity=<null>] 2017-03-13 15:51:07,076 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [DefaultErrorHandler] Recording an error: 401 Unauthorized received while attempting to store build status against Stash instance [Bitbucket], check your application link configuration. : BAM-STAS 2017-03-13 15:51:07,077 WARN [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [BitbucketServerBuildStatusUpdater] No build status updates have been sent to Stash (build key: BAM-STAS-10, repository: stash-master). Is your application link configured properly?
It is showing JIRA error message "com.atlassian.bamboo.jira.rest.JiraRestResponse@610857be[statusCode=401,statusMessage=Unauthorized,errors=Errors[errorMessages=[Request to JIRA failed"
Hi,
Thank you for raising this issue. We regret to inform you that due to limited demand, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request.
This is an automated update triggered by low user engagement with this suggestion (number of votes, number of watchers).
Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Bamboo team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.
We understand how disappointing this decision may be but we want to be fully transparent when communicating with our users.
Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.
Thank you,
Bamboo Team