{"issue":{"created_at":"2011-11-28T16:57:51Z","state":"open","updated_at":"2011-11-28T16:58:25Z","user":{"gravatar_id":"e80c46e273aeef40f4fee102a03522cf","id":676671,"url":"https://api.github.com/users/computino","avatar_url":"https://secure.gravatar.com/avatar/e80c46e273aeef40f4fee102a03522cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"computino"},"comments":29,"body":"When using repeated events without an end date and with unlimited repetitions the event list crashes (in an endless loop over the recurring events). Happened somewhere between 2.6.4 and 2.6.6.\n\nThe faulty code is Events.php ->getAllEvents from line 143 with the following conditions:\n* there is at least one event with no end date or time to be listed\n* its repeated\n* with no. of reccurences = 0 (endless)\nIn this case  $objEvents->recurrences is = 0 and $objEvents->endTime = 0 and the loop is never finished, the breakout line (the first if within the while-block) never triggers.\n\n```\nwhile ($objEvents->endTime < $intEnd)\n{\n\tif ($objEvents->recurrences > 0 && $count++ >= $objEvents->recurrences)\n\t{\n\t\tbreak;\n\t}\n\t[..]\n}\n```\n\nWorks at the demo also.\n\n--- _Originally created on February 17th, 2009, at 12:25am (ID 524)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2369941,"labels":[{"name":"calendar","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/calendar"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":524,"title":"repeated Events can crash Typolight","closed_at":null,"html_url":"https://github.com/contao/test/issues/524","url":"https://api.github.com/repos/contao/test/issues/524","milestone":{"created_at":"2011-11-28T15:58:47Z","state":"open","due_on":null,"closed_issues":9,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":10,"description":"TYPOlight 2.6.7 (maintenance release)","title":"2.6.7","url":"https://api.github.com/repos/contao/test/milestones/10","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-28T16:58:25Z","updated_at":"2011-11-28T16:58:25Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"body":"auch in der aktuellen Version (2.6.7) ist noch ein kalender-BUG, der TYPOlight zum absturz bringt.\nwenn man wiederkehrende einträge erstellt und zb aus versehen das intervall auf \"0\" setzt, stürzt das kalendermodul [in einer endlosschleife] ab und reißt die komplette seite mit sich ins verderben.\nzumindest steigt bei mir die cpu-last so hoch, dass \"Service Unavailable\" erscheint und weder das Frontend noch das Backend zu verwenden sind.\n\n--- _Originally created by scheri on March 18th, 2009, at 09:00pm_","id":2901496,"url":"https://api.github.com/repos/contao/test/issues/comments/2901496"}}