Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-77103

Slow /rest/ical/1.0/ical/config/query/options times out for Team Calendar

XMLWordPrintable

      Issue Summary

      REST API request /rest/ical/1.0/ical/config/query/options is taking a long time to return the full set of data, which caused the JIRA event creation on Confluence team calendar fail with the timeout error.

      Environment

      Large Jira instance with

      • 2000+ projects, or
      • 30000+ search filters

      Steps to Reproduce

      1. Configure 2000 projects and 30,000 filters in Jira
      2. Go to Confluence, create a Calendar event that pulls in Jira projects

      Expected Results

      Correctly allow the user to choose the Jira project and proceed without error.

      Actual Results

      Inspecting browser's Developer Tools, you could see the request https://yourDomain.atlassian.net/wiki/rest/calendar-services/1.0/calendar/jira/<CalendarID>/query/options.json is returning HTTP 500 Internal Server Error.

      ["java.net.SocketTimeoutException: Read timed out"]
      

      While the back-end Confluence log, reported:

      err: { [-]
           class: [ [-]
             com.atlassian.sal.api.net.ResponseException
             java.net.SocketTimeoutException
           ]
           stack: com.atlassian.sal.api.net.ResponseException: java.net.SocketTimeoutException: Read timed out
      com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:117)
      com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:124)
      com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:56)
      com.atlassian.applinks.oauth.auth.OAuthRequest.execute(OAuthRequest.java:58)
      com.atlassian.confluence.extra.calendar3.calendarstore.DefaultJiraAccessor.getQueryOptionsInternal(DefaultJiraAccessor.java:241)
      ...
         }
         ext: { [+]
         }
         hostname:
         level: ERROR
         logger: com.atlassian.confluence.extra.calendar3.rest.ExceptionMappers.GeneralExceptionMapper
         m: { [+]
         }
         message: General exception happen on calendar resources
      

      Notes

      /rest/ical/1.0/ical/config/query/options contains the following data

      • List of projects
      • List of Search filters
      • Names of viewable fields

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              lrura Lauretha Rura
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: