Projects
Kolab:Winterfell
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 48
View file
kolab-syncroton.spec
Changed
@@ -50,6 +50,8 @@ Patch1: defaults.patch +Patch0001: 0001-Accept-MeetingResponse-commands-from-within-the-iOS-.patch + BuildArch: noarch # Use this build requirement to make sure we are using @@ -99,6 +101,8 @@ %patch1 -p1 +%patch0001 -p1 + %build %install @@ -207,6 +211,9 @@ %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog +* Mon Jul 29 2019 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 2.3.15-3 +- Fix MeetingResponse for Calendar events + * Thu Apr 11 2019 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 2.3.15-2 - Update defaults
View file
0001-Accept-MeetingResponse-commands-from-within-the-iOS-.patch
Added
@@ -0,0 +1,91 @@ +From 882701777baf1991e5c33bf55b5b1985794fa67b Mon Sep 17 00:00:00 2001 +From: Jeroen van Meeuwen <kanarip@kanarip.ch> +Date: Mon, 29 Jul 2019 11:57:09 +0200 +Subject: [PATCH] Accept MeetingResponse commands from within the iOS calendar + application. + +Summary: Resolves Bifrost#T228115 + +Test Plan: +* Configure an ActiveSync account on an iOS device. + +* Create an invitation from another user with the current user as a participant. + +* Synchronize the iOS device. + +* Click or edit the event in the calendar to change from/to Accepted/Tentative (Maybe)/Decline. + +* Refresh web interface and view event details. + +* As the organizer, expect a response. + +Reviewers: #syncroton_developers + +Subscribers: #syncroton_developers + +Differential Revision: https://git.kolab.org/D773 +--- + lib/kolab_sync_data_calendar.php | 26 ++++++++++++++++++++++---- + 1 file changed, 22 insertions(+), 4 deletions(-) + +diff --git a/lib/kolab_sync_data_calendar.php b/lib/kolab_sync_data_calendar.php +index e822c73..010dc23 100644 +--- a/lib/kolab_sync_data_calendar.php ++++ b/lib/kolab_sync_data_calendar.php +@@ -596,7 +596,11 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data + $event = $this->get_event_from_invitation($request); + + // find the event in calendar +- $existing = $this->find_event_by_uid($event['uid']); ++ if (array_key_exists('uid', $event)) { ++ $existing = $this->find_event_by_uid($event['uid']); ++ } else { ++ $existing = $this->find_event_by_uid($event->uID); ++ } + /* + switch ($status) { + case 'ACCEPTED': $event['free_busy'] = 'busy'; break; +@@ -665,7 +669,11 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data + // as it's expected by the specification. Server + // should delete an event in such a case, but we + // keep the event copy with appropriate attendee status instead. +- return empty($status) ? null : $this->serverId($event['uid'], $folder); ++ return empty($status) ? null : ( ++ array_key_exists('uid', $event) ? ++ $this->serverId($event['uid'], $folder) : ++ $this->serverId($event->uID, $folder) ++ ); + } + + /** +@@ -684,6 +692,14 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data + return $event; + } + ++ $collection = new Syncroton_Model_SyncCollection( ++ array('collectionId' => $request->collectionId) ++ ); ++ ++ if ($event = $this->getEntry($collection, $request->requestId)) { ++ return $event; ++ } ++ + throw new Syncroton_Exception_Status_MeetingResponse(Syncroton_Exception_Status_MeetingResponse::INVALID_REQUEST); + } + +@@ -723,8 +739,10 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data + + $this->update_attendee_status($old, $status); + +- if ($event['free_busy']) { +- $old['free_busy'] = $event['free_busy']; ++ if (array_key_exists('free_busy', $event)) { ++ if ($event['free_busy']) { ++ $old['free_busy'] = $event['free_busy']; ++ } + } + + // Updating an existing event is most-likely a response +-- +2.20.1 +
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-syncroton (2.3.15-0~kolab6) unstable; urgency=low + + * Fix MeetingResponse parsing for Calendar events + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Mon, 29 Jul 2019 15:13:40 +0200 + kolab-syncroton (2.3.15-0~kolab5) unstable; urgency=low * Correctly clause dependency on kolab-auth
View file
debian.series
Changed
@@ -1,1 +1,2 @@ defaults.patch -p1 +0001-Accept-MeetingResponse-commands-from-within-the-iOS-.patch -p1
View file
kolab-syncroton.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-syncroton Binary: kolab-syncroton Architecture: all -Version: 2.3.15-0~kolab5 +Version: 2.3.15-0~kolab6 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Homepage: http://www.kolab.org/
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.