diff --git a/ChangeLog b/ChangeLog index e484d09ef..71887c484 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-04-09 Wolfgang Sourdeau + * UI/MailPartViewers/UIxMailPartICalActions.m + (_eventObjectWithUID:forUser:): fixed a typo that would cause the + found event to never be returned. + (-updateUserStatusAction): return a 404 status code when the + corresponding event is not found. + * SoObjects/Mailer/SOGoMailFolder.m (-aclsForUser:): don't fetch ACL when the current user is not the mailbox owner. Also, we don't set default viewing roles when the uid is not the active user. diff --git a/UI/MailPartViewers/UIxMailPartICalActions.m b/UI/MailPartViewers/UIxMailPartICalActions.m index 27020e8bf..1324077c1 100644 --- a/UI/MailPartViewers/UIxMailPartICalActions.m +++ b/UI/MailPartViewers/UIxMailPartICalActions.m @@ -96,7 +96,7 @@ { eventObject = [folder lookupName: cname inContext: context acquire: NO]; - if (![eventObject isKindOfClass: [NSException class]]) + if ([eventObject isKindOfClass: [NSException class]]) eventObject = nil; } } @@ -410,12 +410,18 @@ { eventObject = [self _eventObjectWithUID: [emailEvent uid]]; calendarEvent = [eventObject component: NO secure: NO]; - if (([[emailEvent sequence] compare: [calendarEvent sequence]] - != NSOrderedAscending) - && ([self _updateParticipantStatusInEvent: calendarEvent - fromEvent: emailEvent - inObject: eventObject])) - response = [self responseWith204]; + if (calendarEvent) + { + if (([[emailEvent sequence] compare: [calendarEvent sequence]] + != NSOrderedAscending) + && ([self _updateParticipantStatusInEvent: calendarEvent + fromEvent: emailEvent + inObject: eventObject])) + response = [self responseWith204]; + } + else + response = [self responseWithStatus: 404 + andString: @"Local event not found."]; } if (!response)