Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.5, 5.10.8, 5.3.17, 6.5.0, 6.6.8, 6.7.2, 6.13.0, 6.15.2
-
22
-
Severity 3 - Minor
-
20
-
Description
Environment:
- Team Calendar 5.3.17
- Confluence 5.10.8 / 6.1.0
- Jira 7.3.0
Steps to reproduce
- Install Confluence Team Calendars;
- Create an Application Link between Confluence and JIRA;
- Create a Calendar;
- Click Add Event and try to select a JIRA EVENT TYPE;
Expected behavior
It shows "Login & Approve" message
Actual behavior
Error(s) occurred. with a large stack trace or it simply doesn't display the expected information.
In atlassian-confluence.log there is the below error:
2017-05-10 15:20:54,281 ERROR [http-nio-8090-exec-7] [calendar3.rest.ExceptionMappers.GeneralExceptionMapper] getResponseError Could not authenticate to Jira instance -- referer: http://localhost:8090/confluence/calendar/mycalendar.action | url: /confluence/rest/calendar-services/1.0/calendar/jira/9de8af3e-0937-3d4b-8e79-933a2124cd43/query/options.json | traceId: eb6cfe39fe771334 | userName: admin com.atlassian.applinks.api.CredentialsRequiredException: at com.atlassian.confluence.extra.calendar3.calendarstore.DefaultJiraAccessor$1.credentialsRequired(DefaultJiraAccessor.java:221) at com.atlassian.confluence.extra.calendar3.calendarstore.DefaultJiraAccessor$1.credentialsRequired(DefaultJiraAccessor.java:217) at com.atlassian.applinks.oauth.auth.OAuthApplinksResponseHandler$1.credentialsRequired(OAuthApplinksResponseHandler.java:115) at com.atlassian.applinks.oauth.auth.OAuthApplinksResponseHandler.handle(OAuthApplinksResponseHandler.java:62) at com.atlassian.plugins.rest.module.jersey.JerseyRequest$2.handle(JerseyRequest.java:134) at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:104) at com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:131) at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:58) at com.atlassian.applinks.oauth.auth.ThreeLeggedOAuthRequest.execute(ThreeLeggedOAuthRequest.java:51) at com.atlassian.confluence.extra.calendar3.calendarstore.DefaultJiraAccessor.getQueryOptions(DefaultJiraAccessor.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...
Workaround
- Insert a JIRA Issue macro into a Confluence page;
- Try to query a Jira issue using JQL;
- It should display the "Login & Approve" message - click there and proceed with the authentication;
- Save the page;
- Back in the calendar, the JIRA Events should work properly.
Attachments
Issue Links
- relates to
-
CONFSERVER-45189 External gadgets in Confluence should not prompt users to Login and Approve
- Closed
- was cloned as
-
CONFCLOUD-67770 Team Calendar doesn't display Oauth prompt for JIRA Events
- Closed
- mentioned in
-
Page Loading...