Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-14901

Dev panel does not display details if base url and application url is different (2LO without impersonation)

XMLWordPrintable

      Tested with

      Steps to reproduce

      Applink Setup
      1. Set up application link from Jira to Stash using http://localhost:7991/stash. Jira queries Stash's base URL http://localhost:7990/stash as Display URL.
        • DO NOT check I am admin on both instance to prevent automatic applink creation (automatic applink creation would use the base url of JIRA for both application URL and Display URL.
      2. Set up application link from Stash to Jira using http://localhost:8081/jira. Jira queries Stash's base URL http://localhost:8080/jira as Display URL.
        • DO NOT check I am admin on both instance to prevent automatic applink creation (automatic applink creation would use the base url of STASH for both application URL and Display URL.
      3. Configure the application link to use 2 legged oauth autentication WITHOUT impersonation.
      Developement Panel testing
      1. Create a repo in Stash and push some commits with Jira issue keys in it
      2. View the issue in Jira.The commits will be listed in the Development Panel
        1. Click on the commits to see more details.
        2. Jira will prompt you to authenticate from Stash. Click Authenticate.
        3. Click allow in the prompted Stash screen.

      Expected Behavior

      The commit details popup in Jira should refresh and the commits would appear

      Actual Behavior

      The commit details popup in Jira continue to display the Authenticate to see related commits page. The following error is thrown in atlassian-jira.log

      2014-08-20 21:00:21,741 devstatus.applink:thread-1 WARN admin 1259x255x1 zq20lw 0:0:0:0:0:0:0:1 /browse/DEMO-5 [apache.commons.httpclient.HttpMethodDirector] Unable to respond to any of these challenges: {oauth=OAuth realm="http%3A%2F%2Flocalhost%3A7991%2Fstash", oauth_token="", oauth_consumer_key="jira%3A01e5b3be-2ab5-4f19-9f1c-36f1cf8022d7", oauth_signature_method="RSA-SHA1", oauth_timestamp="1408539621", oauth_nonce="456133123505674", oauth_version="1.0", oauth_signature="LmdL1xvd34dOqEkyp0A5ZnFu8gJ30jfa7YrwJlGvWujgyf1vBGsndfbjzwqj35J6RgTUlXowHdcWs8LCJsm4A4KDA8BQf7KsllptU%2BosAVCT6c84Y0VqSBxSo8VOq4Gq98TE6xD875xEl8RbMWfDRjwfpGzPFLEuv%2BJrTsWdK84%3D"}
      2014-08-20 21:00:21,743 http-bio-8081-exec-9 WARN admin 1260x315x1 zq20lw 0:0:0:0:0:0:0:1 /rest/dev-status/1.0/issue/detail [plugin.devstatus.provider.DefaultCoordinator] Requests failed: Stash (unauthorized)

              Unassigned Unassigned
              dlee@atlassian.com Deric Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: