6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14018] Kronolith syncml duplicate event detection broken
*
Your Email Address
*
Spam protection
Enter the letters below:
. .___.___. .. . | [__ [__ |__||\/| |___| | | || |
Comment
> A broken funambol syncml for Outlook request was creating thousands > of repeated events in kronolith_events database. > > I've found that there is code that could be preventing this, but it's broken. > New events from syncml pass through "_addiCalEvent" function prior > to be inserted in database as new events. And there is a search for > an existing event match in database: > $result = $driver->search($event); > // Check if the match really is an exact match: > > But $driver->search returns an array of arrays of events, indexed by > date, while this code will deal with an array of events. > A loop like "foreach ($result as $match)" will have a array of > events, not a single event. It will never get a match an the event > will always be inserted as new. In fact, search actually returns > thousands of duplicated events from my database, but new is inserted > anyway. > > There's also another bug in this function: > if ($match->start == $event->start && > $match->end == $event->end && > $match->title == $event->title && > > is incorrect, as $match->start is a date object. Should be something like: > if ($match->start->compareDateTime($event->start) == 0 && > $match->end->compareDateTime($event->end) == 0 && > $match->title == $event->title && > > Patch is attached to clarify.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers