--- a/pimappservices/calendar/server/src/agsalarm.cpp Fri Mar 12 15:42:35 2010 +0200
+++ b/pimappservices/calendar/server/src/agsalarm.cpp Mon Mar 15 12:40:18 2010 +0200
@@ -680,8 +680,15 @@
else
{
aAlarmInfo.iRecurrenceId = entry->RecurrenceId().UtcL();
- }
- aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry);
+ }
+
+ // Check the length of the Uid from the entry if it is less than the
+ // the supported length assign it to the aAlarmInfo.
+ // as per the RFC we are supporting 256 chars most of app UID is within this range
+ // in future if anyone supports more than this length we need to handle this here .
+ if (iModel->GetEntryGuidL(*entry).Length() <= KAgnEntryMaxGuidLength)
+ aAlarmInfo.iGlobalIdentifier = iModel->GetEntryGuidL(*entry);
+
CleanupStack::PopAndDestroy(entry);
}