GNOME Bugzilla – Bug 702922
Meetings with no attendees are treated as Appointment
Last modified: 2013-08-16 09:42:44 UTC
Description of problem: A meeting saved with no attendees, after a server refresh, is shown as an appointment.
Created attachment 247576 [details] [review] Bug 702922 - Meetings with no attendees are treated as Appointment A meeting with no attendees is treated as an appointment by EWS. To workaround this problem we need to add the "Organizator" as an attendee, if we don't have any other. And we never should remove him from attendee's list, once he is only added when is really necessary.
Review of attachment 247576 [details] [review]: Looks fine, please fix the one coding style issue, and commit to master and gnoem-3-8 branches. Thanks. ::: src/calendar/e-cal-backend-ews-utils.c @@ +98,3 @@ + + if (*required == NULL && *optional == NULL && *resource == NULL && org_email_address != NULL) + *required = g_slist_prepend (*required, (gpointer)org_email_address); missing white-space after (gpointer)
Pushed! naster: https://git.gnome.org/browse/evolution-ews/commit/?id=fd0ea6b97d3bb50aece56da6a37f233f674a2a79 gnome-3-8: https://git.gnome.org/browse/evolution-ews/commit/?h=gnome-3-8&id=f79037e714fb9bb36c80afab5caa033429487019
Created attachment 251808 [details] [review] ews patch (regression fix) for evolution-ews; Err, this has a regression, user is not able to create appointments at all, only meetings. The returned error is: > Could not create the object! Cannot create calendar object: The request > failed schema validation: The 'http://schemas.microsoft.com/exchange/ > services/2006/types:EmailAddress' element is invalid - The value '' is > invalid according to its datatype 'http://schemas.microsoft.com/exchange > /services/2006/types:NonEmptyStringType' - The actual length is less than > the MinLength value. which is due to the XML, which looks like: > <RequiredAttendees> > <Attendee><Mailbox><EmailAddress/></Mailbox></Attendee> > </RequiredAttendees> which is caused by an overlook that e_ews_collect_organizer() returns an empty string, instead of NULL. I added this check there, same as few more checks when gathering attendees, to avoid this error.
Created commit 286ab97 in ews master (3.9.90+)