Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

BitBucket server JIRA link oauth 500

Willem Jan Kortleve March 22, 2016

When trying to connect Bitbucket server to JIRA we get an error setting up the OAUTH link from Bitbucket server to JIRA. In the tab a 500 server error appears. In the log we see:

2016-03-22 10:28:56,125 ERROR [http-nio-7990-exec-2] admin @CZ0RUIx628x3608x0 1im9ygn 10.74.1.20:50596,127.0.0.1 "GET /plugins/servlet/applinks/auth/conf/oauth/add-consumer-by-url/c6394b92-2873-351f-123d-76b02a3e1234 HTTP/1.1" org.apache.velocity ResourceManager : unable to find resource 'auth/applink-missing.vm' in any resource loader.

2016-03-22 10:28:56,188 ERROR [http-nio-7990-exec-2] @CZ0RUIx628x3609x0 1im9ygn 10.74.1.20:50596,127.0.0.1 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/plugins/servlet/applinks/auth/conf/oauth/add-consumer-by-url/c6394b92-2873-351f-123d-76b02a3e1234]

The other way around, JIRA to Bitbucket server seems to work fine. We can enable and disable oauth from within the link in JIRA. All tips are welcome smile

Best Regards,
Willem Jan

 

 

 

1 answer

0 votes
Eugene Alekseev May 14, 2016

I have the same issue. Do you have any progress solving it?

Willem Jan Kortleve May 16, 2016

Hi Eugene, our problem was related to IIS. We have BitBucket running on Windows/IIS. We use Application Request Routing (AAR) to redirect request to the appropriate site. In fact we also run Bamboo in this server as it is our test environment. Eventually I found some article which lead us to our solution.

The problem is caused by AAR. By default it uses 'Reverse rewrite host in response headers'. This option is found in Application Request Routing Cache at the IIS root site level. We unchecked the checkbox and it worked. Here is an article: http://www.iis.net/learn/extensions/configuring-application-request-routing-arr/creating-a-forward-proxy-using-application-request-routing Look at the item 'Configure ARR as Forward Proxy' bullet number 5...

Hope this also helps in your case!

Eugene Alekseev May 17, 2016

Hi! Thx a lot. My problem was not with IIS, but also about proxy.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events