6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/11/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12160] Infinity loop on event with recurrence
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .___.__ . .. , [__)[__ [ __|_/ \./ | \| [_./| \ |
Comment
> After several hours of debugging I finally figured out what's going on: > The code to exclude recurring objects ending in the past was not > working correctly. > > Consider this scenario: > We call _listEvents($startDate = "2012-10-20", $endDate=null). We > have the following event: > > start: 2012-09-17 10:00 > end: 2012-09-17 12:00 > recurrence: type: daily, start: 2012-09-17, interval: 2 > > As there is no fixed recurrence end date, the current code failed > to examine the recurrence and passed that event on to Kronolith::addEvents(). > > Kronolith::addEvents() later on noticed it's a recurring event and > tried to calculate the start date of the event as "$startDate = > $event->nextRecurrence($startDate)". > It didn't expect that nextRecurrence() might return false and then > ran into an endless loop. > > Attached patch fixes the recurrence handling. > > With this patch applied, the endless loop is gone > (and my safety protection loggers don't detect anything). > > The SQL driver already works correctly. >
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