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
commit
0db16aedb1
1
NEWS
1
NEWS
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue