[CalendarServer-users] Questions regarding delegation, attachments and time errors

Ian Baker ibaker at eem.ca
Tue May 9 11:39:50 PDT 2017


> On May 8, 2017, at 5:51 PM, Andre LaBranche <dre at apple.com> wrote:
> 
>> 
>> On May 7, 2017, at 6:46 AM, Ian Baker <ibaker at eem.ca <mailto:ibaker at eem.ca>> wrote:
> ...
>> <Screen Shot 2017-05-07 at 9.31.14 AM.png>
>> 
>> This is a bit beyond me.
>> 
>> Any thoughts?  Any way to identify and repair the “detached event without a parent”?
> 
> Hi,
> 
> It's hard to say exactly what is wrong without some idea of what the problematic event(s) look like. If you can make a slight alteration to the webcalendar javascript, the error message could include a reference to the event in question.
> 
> In the file /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/webcal/public/javascripts/sprockets.js, find the line:
> 
> throw 'Tried to create a detached calendar event without a parent event.';
> 
> and change it to:
> 
> throw 'Tried to create an expanded calendar event ' + inEventStruct.UID.value + ' without a parent event.';
> 
> You may need to bounce your browser to pick up the change. If it worked, when trying to load the problem event in the wiki calendar, you should see an exception logged similar to:
> 
> <PastedGraphic-2.png>
> 
> (note that the above was generated without having reproduced the actual problem; I just inverted the logic of the 'if' expression that contains the 'throw' statement.)
> 
> Once you have the UID of the event, you can dump the body text on the server as follows:
> 
> # run as root, replacing the UID with the one your client logged about
> sudo psql -h /var/run/caldavd/PostgresSocket -U caldav caldav -c "select icalendar_text from calendar_object where icalendar_uid = 'c784ee85-5f70-f701-5961-573cdc2e27db';"
> 
> -dre

Thanks for this Andre.

I’ve made the javascript change, identified the problematic event, and dumped the body text.  In fact the body text seems to include two different events, one STATUS:CANCELLED, and the other STATUS:CONFIRMED.

How can I identify the problem with this object?  Could I perhaps send you the body text under separate cover?

Also, any thoughts on the issue I described below?

>> Also a related question.  Last week I used the Mac Calendar.app to log into the boss’s account to help him configure some delegation permissions in the app’s preferences, and discovered that a number of emails were sent under my personal email declining invitations.  Here is an example: 
>> 
>>> Ian Baker has declined your invitation to the event: Lunch au bureau, scheduled for January 26, 2017 at 12:00 PM (America/Toronto (EDT) offset -14400 (Daylight)).
>> 
>> I personally was not invited to these events, but the boss was, and he already declined the invitation back in January (according to him).
>> 
>> I don’t understand why these emails were sent.  Is this expected behaviour?  And if so, is there any way to prevent these from going out?

Thanks

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20170509/e7ac2995/attachment.html>


More information about the calendarserver-users mailing list