Merge pull request #112 from Zentyal/ejhernandez/fix-crash-invalid-ics

A failure in parsing an ICS makes return a nil calendar
object. Instead of creating an appointment with nil
information which can lead to crashes like the one
generated creating PidLidCleanGlobalObjectId property.

We return an empty message with no information which is
taken into account in Outlook but not displayed like
in SOGo webmail does.
pull/65/head
Jesús García Sáez 2015-03-24 19:13:57 +01:00
commit 0db16aedb1
2 changed files with 7 additions and 0 deletions

1
NEWS
View File

@ -5,6 +5,7 @@ Enhancements
- Improve sync speed from Outlook by non-reprocessing already downloaded unread mails
Bug fixes
- Fix server-side crash with invalid events
- Fix setting permissions for a folder with several users
- Fix reception of calendar event invitations on optional attendees
- Fix server side crash parsing rtf without color table

View File

@ -181,6 +181,12 @@ static Class NSArrayK, MAPIStoreAppointmentWrapperK;
else
{
origCalendar = [sogoObject calendar: YES secure: YES];
if (!origCalendar)
{
[self errorWithFormat: @"Incorrect calendar event %@. Empty message is created",
[self url]];
return self;
}
calendar = [origCalendar mutableCopy];
masterEvent = [[calendar events] objectAtIndex: 0];
[self _setupAttachmentParts];