Shared Calendars and SyncRequest SOAP API

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
pjameson
Posts: 1
Joined: Mon Feb 15, 2016 12:44 am

Shared Calendars and SyncRequest SOAP API

Post by pjameson »

Hi Everyone. We are working on a shared calendaring system and have come across a challenging issue. It's pretty deep in the SOAP weeds, so I apologize for the verbosity, but I wanted to be clear. Here's our problem. Any ideas? 

Thanks!

Pete

User Andy creates a calendar and shares it with User Ben. Let’s say Andy opens our app. We make the following SOAP call to our Zimbra server and it returns all the latest changes to Andy’s calendar.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
                        <soap:Header>
                            <context xmlns="urn:zimbra"><format xmlns="" type="js"/>
                                <authToken>{$this->delegateToken}</authToken>
                            </context>
                        </soap:Header>
                        <soap:Body>
                            <SyncRequest xmlns="urn:zimbraMail"{$syncToken} typed="1" />
                        </soap:Body>
</soap:Envelope>


This works really well and has for a long time.

Now let’s say Ben opens our app. Again we make the same SOAP call and we get all of Ben’s updated calendar info.

So far, everything is great.

No let’s say that Ben (not the owner of the calendar) decides to add a new event to the calendar that Andy shared with him. This works fine and when Andy next opens the app, we make the same SOAP call and voila! The event that Ben added appears in Andy Sync Data.

Everything is still awesome.

Now let’s say Andy (the owner of the calendar) adds a new event to the calendar that he has shared with Ben.

Here’s the problem. When Ben opens the app, we again run the same SOAP call and we get back all of Ben’s calendar info, except the event that Andy just added does not appear in Ben’s calendar data.

So Ben never sees the new event that Andy created. Interestingly, if we make the SyncRequest call without a token, then the event shows up. When you make the SyncRequest without a token it actually sends you all the calendar data from the account.

So the problem appears to be that Ben (not the owner of the calendar) is never seeing events added by Andy (the owner of the calendar). Conversely, when Ben adds a new event, Andy’s SyncRequest reply always includes the new event added by Ben.
User avatar
Gren Elliot
Advanced member
Advanced member
Posts: 183
Joined: Tue Jun 10, 2014 4:45 am

Shared Calendars and SyncRequest SOAP API

Post by Gren Elliot »

Sounds like a straight bug. The best way to get attention for it is to file a bug at https://bugzilla.zimbra.com/

Ideally, post the bug report here for cross reference (and maybe reference this article in the bug too).
Post Reply