Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3868

Calendar REST API does not store the externalId

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5.15
    • Fix Version/s: 12.5.16
    • Component/s: None
    • Labels:
      None

      Description

      Adding an Event to a Calendar via REST API PUT to restapi/repo/courses/..../calendar/events ignores the passed externalId on creation.

      This patch solves it for us:

      diff --git a/src/main/java/org/olat/commons/calendar/restapi/CalendarWSHelper.java b/src/main/java/org/olat/commons/calendar/restapi/CalendarWSHelper.java
      index 1451100..c4c7d9d 100644
      --- a/src/main/java/org/olat/commons/calendar/restapi/CalendarWSHelper.java
      +++ b/src/main/java/org/olat/commons/calendar/restapi/CalendarWSHelper.java
      @@ -51,6 +51,7 @@ public class CalendarWSHelper {
                      kalEvent.setLocation(event.getLocation());
                      kalEvent.setManagedFlags(CalendarManagedFlag.toEnum(event.getManagedFlags()));
                      kalEvent.setAllDayEvent(event.isAllDayEvent());
      +               kalEvent.setExternalId(event.getExternalId());
              }
      
              protected static boolean hasReadAccess(KalendarRenderWrapper wrapper) {
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              d.haag Daniel Haag
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m