Wallce is not updateing a complete series of events for an resource
Open, 60Public



wallace is unable to update a complete set of reoccurring events of an resource. This means if a user is updating an reoccurring event with an participating resource using the "all events" method in roundcube, wallace will ignore the generated itip message and not update the resource calendar. Wallace is missing the 'Recurrance-ID' for this update.


The below patch changes this behavior so wallace is updating the complete event series in this case:

--- module_resources.py.orig	2018-03-29 10:10:27.687576546 +0200
+++ /usr/lib/python2.7/site-packages/wallace/module_resources.py	2018-03-28 15:49:57.888756090 +0200
@@ -870,11 +870,16 @@
         save_event = itip_event['xml']
         targetfolder = imap.folder_quote(resource['kolabtargetfolder'])
         # add exception to existing recurring main event
         if resource.get('existing_master') is not None:
+            log.debug(_("Adding Exception to existing recurring main event"), level=8)
             save_event = resource['existing_master']
-            save_event.add_exception(itip_event['xml'])
+            try:
+                save_event.add_exception(itip_event['xml'])
+            except Exception, e:
+                log.debug(_("Could not add exception, updating complete recurring event"), level=9)
+                save_event = itip_event['xml']
         elif itip_event.get('_master') is not None:
             save_event = itip_event['_master']

Kind Regards,


Ticket Type
juwo created this task.Mar 29 2018, 5:27 PM