Team Calendar events cannot be moved by drag&drop due to malformed NaN date values in browser request

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 1

      Issue Summary

      After upgrading to Confluence 10.2.13+, users are unable to move Team Calendar events using drag-and-drop in certain browsers (specifically Safari and Chrome). The browser fails to calculate time coordinates, sending "NaN" values for start and end times to the REST API, resulting in a 500 Internal Server Error.

      Steps to Reproduce

      1. Access a Confluence instance (v10.2.13 or v10.2.14) with Team Calendars.
      2. Open a calendar and attempt to drag an existing event to a new time or day.
      3. Observe the UI failing to update the event position.

      Expected Results

      • The event should be moved to the new time slot, and a successful PUT request should be sent to /rest/calendar-services/1.0/calendar/events.json.

      Actual Results

      • The browser sends a request with start=2026-07-16TNaN:NaN:NaN and end=2026-07-16TNaN:NaN:NaN. The server returns a 500 error with java.lang.IllegalArgumentException: Invalid format: "2026-07-15TNaN:NaN:NaN" is malformed.
      2026-07-13 13:30:33,076 ERROR [http-nio-8090-exec-51 url: /confluence/rest/calendar-services/1.0/calendar/events.json; user: admin] [v2.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error. Log referral number: 5abeaca3-b03c-4e8c-b8c4-ceb19293a2c6
       -- url: /confluence/rest/calendar-services/1.0/calendar/events.json | userName: admin | referer: https://linux-128955.prod.atl-cd.net/confluence/calendar/mycalendar.action | traceId: ace91023194f246a
      java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid format: "2026-07-15TNaN:NaN:NaN" is malformed at "NaN:NaN:NaN"
      	at com.atlassian.confluence.extra.calendar3.rest.resources.EventResource.lambda$updateEvent$1(EventResource.java:311)
      	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)
      	at com.atlassian.sal.spring.component.SpringHostContextAccessor.lambda$doInTransaction$0(SpringHostContextAccessor.java:72)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
      	at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:70)
      	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
      	at jdk.proxy4/jdk.proxy4.$Proxy580.execute(Unknown Source)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      	...at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:491)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
      	at java.base/java.lang.Thread.run(Thread.java:1583)
      Caused by: java.lang.IllegalArgumentException: Invalid format: "2026-07-15TNaN:NaN:NaN" is malformed at "NaN:NaN:NaN"
      	at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:953)
      	at com.atlassian.confluence.extra.calendar3.rest.validators.event.impl.WhenFieldValidator.isValid(WhenFieldValidator.java:47)
      	at com.atlassian.confluence.extra.calendar3.rest.validators.event.EventChainValidator.isValid(EventChainValidator.java:25)
      	at com.atlassian.confluence.extra.calendar3.rest.resources.EventResource.lambda$updateEvent$1(EventResource.java:143)
      

      Workaround

      Manually edit the calendar entry by clicking on it and changing the dates/times in the edit dialog instead of using drag-and-drop.

      Versions Tested

      • Confluence 10.2.13, 10.2.14 (Team Calendars)
      • Latest bug-fix LTS version(s): Not observed in 9.2.15, 9.2.19
      • Latest bug-fix release (non-LTS): 10.2.14

              Assignee:
              Zac Xu
              Reporter:
              Shruthi Hebbal
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: