[Tickets #5080] Wrong multiple iCalendar events detection during SyncML

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Mar 7 17:57:44 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5080
-----------------------------------------------------------------------
 Ticket             | 5080
 Created By         | x3n at molinier.eu
 Summary            | Wrong multiple iCalendar events detection during SyncML
 Queue              | Kronolith
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


x3n at molinier.eu (2007-03-07 09:57) wrote:

in kronolith/lib/api.php:760, there is a analysis of the VCALENDAR sent by
the client. Is this analysis, the program checks if there is on or more
VEVENT element in the content.
If there are several element, Kronolith cannot handle it. So there is an
exception.

The bug is the following: we are not couting the number of VEVENT element
in VCALENDAR but the number of element in whole. There is a problem when
the client is sending a VTIMEZONE object at the same time...

To solve this, I propose to leave away everything except VEVENT (we don't
care about VTIMEZONE here!):

-line 757 -
            $components=array();
            // Filtering components to keep only VEVENT objects
            foreach($iCal->getComponents() as $component) {
              if(is_a($component, 'Horde_iCalendar_vevent')) {
                array_push($components, $component);
              }
            }

            switch (count($components)) {
...

Best regards,

x3n
http://www.molinier.eu



More information about the bugs mailing list