Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-57756

Team Calendars cannot import .ics files if no valid timezone can be found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • TC-6.0.25, TC-6.0.27
    • Apps - Team Calendar
    • None

      Steps to Reproduce

      1. Install Confluence and Team Calendars
      2. Set Confluence's timezone to a value that is not considered valid by Team Calendars, using a JVM parameter. For example, "UTC":
        -Duser.timezone=UTC
        
      3. Try to import this .ics file into Team Calendars: [^example.ics]

      Expected Results

      The calendar either imports or displays a reason in the UI why it cannot be imported.

      Actual Results

      The UI shows no action when the Import button is pressed, and the dialog remains up.
      Application logs show that a particular VM file cannot be found:

      2018-11-21 20:07:57,826 ERROR [http-nio-8090-exec-4367] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm'
      ...
      

      Notes

      From the error, we can see that the VM file does not actually exist where plugin is expecting it. In the Team Calendars JAR file, it is located in a slightly different path:

      Context Path
      In the exception message /com/atlassian/confluence/extra/templates/velocity/calendar3/calendar-import-subcalendar-timeZoneRequired.vm
      Within the Jar file /com/atlassian/confluence/extra/calendar3/templates/velocity/calendar-import-subcalendar-timeZoneRequired.vm

      A related ticket to improve Team Calendars timezone detection has been raised here: CONFSERVER-57757

      Workaround

      Ensure that the .ics file contains a valid timezone. Definitions and examples below:

              Unassigned Unassigned
              rchang Robert Chang (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: