Unable to Integrate Bitbucket with JIRA due to Could not verify OAuth Request

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Attempting to set up the JIRA DVCS Connector for Bitbucket and GitHub plugin to connect to Bitbucket fails with the error "The authentication with Bitbucket has failed. Please check your OAuth settings.", as below:

The following appears in the atlassian-jira.log:

2013-01-14 10:15:30,532 http-bio-8080-exec-14 ERROR ghall 615x16754x1 14va0p 10.92.40.149 /secure/admin/AddBitbucketOrganization.jspa [spi.bitbucket.webwork.AddBitbucketOrganization] Error redirect user to bitbucket server.
org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Could not verify OAuth request.'
	at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:41)
	at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:27)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.scribe.HttpClientThrreeLoOAuth10aServiceImpl.getRequestToken(HttpClientThrreeLoOAuth10aServiceImpl.java:55)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.webwork.AddBitbucketOrganization.redirectUserToBitbucket(AddBitbucketOrganization.java:83)
	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.webwork.AddBitbucketOrganization.doExecute(AddBitbucketOrganization.java:74)
	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221)
	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150)
	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.atlassian.jira.web.filters.XContentTypeOptionsNoSniffFilter.doFilter(XContentTypeOptionsNoSniffFilter.java:22)
	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
	at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)

原因

One of the current known causes of this problem is a misconfiguration with the system time of the server that is running JIRA. If the system time is incorrect it can cause the org.scribe.exceptions.OAuthException to be thrown when connecting to Bitbucket, above.

ソリューション

Verify the system time of the JIRA server is correct. It is recommended to synchronise it with an NTP server.

最終更新日 2016 年 3 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.