Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-4254

Unknown error when clicking on JIRA link in a pull request

    XMLWordPrintable

    Details

      Description

      2014-01-07 22:27:50,777 WARN  [http-bio-9080-exec-19241] ssaasen 1347x7804455x1 2qt9jd 203.174.172.233,172.24.36.105,127.0.0.1 "GET /rest/jira-integration/latest/issues HTTP/1.1" o.a.c.httpclient.HttpMethodDirector Unable to respond to any of these challenges: {oauth=OAuth realm="https%3A%2F%2Fecosystem.atlassian.net", oauth_token="", oauth_consumer_key="Stash%3A9873970348", oauth_signature_method="RSA-SHA1", oauth_timestamp="1389133670", oauth_nonce="22437650212741761", oauth_version="1.0", oauth_signature="fWsyWgTip4A670jZv85h0VvUinT%2FulH79ogR5DwPgRc6S1pnkw3K6AvXz58E7wVqNnj6FlnJAAv%2Fhiiojb6T7D8xWpOYisP0Yp59Itaf2noYt5agVbfFomcMHrSLg7W5OQJnopUwcRwveemIG8UtvTJfpw3OocKOmw72e7vyNv0%3D"}
      2014-01-07 22:27:50,807 ERROR [http-bio-9080-exec-19241] ssaasen 1347x7804455x1 2qt9jd 203.174.172.233,172.24.36.105,127.0.0.1 "GET /rest/jira-integration/latest/issues HTTP/1.1" c.a.i.i.jira.DefaultJiraService Non-JSON response from JIRA:
      <html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>
      org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.StringReader@4e76363b; line: 1, column: 2]
      	at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:306) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1192) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:479) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.map.ObjectReader._initForReading(ObjectReader.java:638) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.map.ObjectReader._bindAndClose(ObjectReader.java:562) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at org.codehaus.jackson.map.ObjectReader.readValue(ObjectReader.java:333) ~[atlassian-rest-module-2.8.2_1383916286000.jar:1.9.13]
      	at com.atlassian.internal.integration.jira.DefaultJiraService$JiraResponseHandler.handle(DefaultJiraService.java:579) [jira-integration-plugin-1.2.0_1385572298000.jar:na]
      	at com.atlassian.internal.integration.jira.DefaultJiraService$JiraResponseHandler.handle(DefaultJiraService.java:547) [jira-integration-plugin-1.2.0_1385572298000.jar:na]
      	at com.atlassian.applinks.core.auth.oauth.OAuthApplinksResponseHandler.handle(OAuthApplinksResponseHandler.java:61) ~[na:na]
      	at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor$1.handle(ApplicationLinkRequestAdaptor.java:87) ~[na:na]
      	at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:336) ~[sal-core-2.10.9.jar:na]
      	at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:84) ~[na:na]
      	at com.atlassian.applinks.core.auth.oauth.OAuthRequest.execute(OAuthRequest.java:43) ~[na:na]
      	at com.atlassian.internal.integration.jira.DefaultJiraService.retrieveIssuesFromJira(DefaultJiraService.java:348) ~[jira-integration-plugin-1.2.0_1385572298000.jar:na]
      	at com.atlassian.internal.integration.jira.DefaultJiraService.getIssuesAsJson(DefaultJiraService.java:160) ~[jira-integration-plugin-1.2.0_1385572298000.jar:na]
      	at com.atlassian.internal.integration.jira.rest.JiraResource.getDetailsForIssueKeys(JiraResource.java:74) ~[jira-integration-plugin-1.2.0_1385572298000.jar:na]
      	at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na]
      	at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:92) ~[StashAuthenticationFilter.class:na]
      	at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na]
      	at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na]
      	at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) ~[atlassian-trusted-apps-core-3.0.2.jar:na]
      	at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) ~[na:na]
      	at com.atlassian.analytics.client.filter.AnalyticsFilter.doFilter(AnalyticsFilter.java:28) ~[na:na]
      	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) ~[atlassian-core-4.6.11.jar:na]
      	at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na]
      	at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na]
      	at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:72) ~[stash-service-impl-2.10.0.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
      	at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
      	... 176 frames trimmed
      

      Might be a misconfigured app link -> This request requires HTTP authentication, or a bad connection to the JIRA server.

      To fix this we should alter the issue servlet to catch thrown exceptions from the issue service, and render a 500 error HTML page (instead of throwing the error message from JIRA up to the browser in Bitbucket Server).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: