{"action":"created","issue":{"url":"https://api.github.com/repos/fruux/sabre-dav/issues/899","repository_url":"https://api.github.com/repos/fruux/sabre-dav","labels_url":"https://api.github.com/repos/fruux/sabre-dav/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/fruux/sabre-dav/issues/899/comments","events_url":"https://api.github.com/repos/fruux/sabre-dav/issues/899/events","html_url":"https://github.com/fruux/sabre-dav/issues/899","id":183000746,"number":899,"title":"Why recurring events are only allowed to generate 3500 instances ?","user":{"login":"strokyl","id":173588,"avatar_url":"https://avatars.githubusercontent.com/u/173588?v=3","gravatar_id":"","url":"https://api.github.com/users/strokyl","html_url":"https://github.com/strokyl","followers_url":"https://api.github.com/users/strokyl/followers","following_url":"https://api.github.com/users/strokyl/following{/other_user}","gists_url":"https://api.github.com/users/strokyl/gists{/gist_id}","starred_url":"https://api.github.com/users/strokyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strokyl/subscriptions","organizations_url":"https://api.github.com/users/strokyl/orgs","repos_url":"https://api.github.com/users/strokyl/repos","events_url":"https://api.github.com/users/strokyl/events{/privacy}","received_events_url":"https://api.github.com/users/strokyl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fruux/sabre-dav/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-14T09:14:05Z","updated_at":"2016-10-17T13:48:07Z","closed_at":null,"body":"Hello,\r\nUsing Sabre 3.2.0, when I create a recurring event with a RRULE count property greater than 3499 I got the following error.\r\n\r\n`<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\">\r\n  <s:sabredav-version>3.2.0</s:sabredav-version>\r\n  <s:exception>Sabre\\VObject\\Recur\\MaxInstancesExceededException</s:exception>\r\n  <s:message>Recurring events are only allowed to generate 3500</s:message>\r\n  <s:file>/var/www/vendor/sabre/vobject/lib/Recur/EventIterator.php</s:file>\r\n  <s:line>312</s:line>\r\n  <s:code>0</s:code>\r\n  <s:stacktrace>#0 /var/www/lib/CalDAV/Backend/Mongo.php(788): Sabre\\VObject\\Recur\\EventIterator-&gt;valid()\r\n#1 /var/www/lib/CalDAV/Backend/Mongo.php(288): ESN\\CalDAV\\Backend\\Mongo-&gt;getDenormalizedData('BEGIN:VCALENDAR...')\r\n#2 /var/www/vendor/sabre/dav/lib/CalDAV/Calendar.php(201): ESN\\CalDAV\\Backend\\Mongo-&gt;createCalendarObject(Array, '309f362f-75fa-4...', 'BEGIN:VCALENDAR...')\r\n#3 /var/www/vendor/sabre/dav/lib/DAV/Server.php(1072): Sabre\\CalDAV\\Calendar-&gt;createFile('309f362f-75fa-4...', 'BEGIN:VCALENDAR...')\r\n#4 /var/www/vendor/sabre/dav/lib/DAV/CorePlugin.php(525): Sabre\\DAV\\Server-&gt;createFile('calendars/57fd0...', Resource id #5, NULL)\r\n#5 [internal function]: Sabre\\DAV\\CorePlugin-&gt;httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#6 /var/www/vendor/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n#7 /var/www/vendor/sabre/dav/lib/DAV/Server.php(479): Sabre\\Event\\EventEmitter-&gt;emit('method:PUT', Array)\r\n#8 /var/www/vendor/sabre/dav/lib/DAV/Server.php(254): Sabre\\DAV\\Server-&gt;invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n#9 /var/www/server.php(169): Sabre\\DAV\\Server-&gt;exec()\r\n#10 {main}</s:stacktrace>\r\n</d:error>`\r\n\r\nI can reproduce the same error using a big date for the until property.\r\nThen I create a recurring event that never end and I was really surprised to see that in fact it does not repeat more than a certain amount of times, is it wanted ?"},"comment":{"url":"https://api.github.com/repos/fruux/sabre-dav/issues/comments/254212311","html_url":"https://github.com/fruux/sabre-dav/issues/899#issuecomment-254212311","issue_url":"https://api.github.com/repos/fruux/sabre-dav/issues/899","id":254212311,"user":{"login":"evert","id":178960,"avatar_url":"https://avatars.githubusercontent.com/u/178960?v=3","gravatar_id":"","url":"https://api.github.com/users/evert","html_url":"https://github.com/evert","followers_url":"https://api.github.com/users/evert/followers","following_url":"https://api.github.com/users/evert/following{/other_user}","gists_url":"https://api.github.com/users/evert/gists{/gist_id}","starred_url":"https://api.github.com/users/evert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evert/subscriptions","organizations_url":"https://api.github.com/users/evert/orgs","repos_url":"https://api.github.com/users/evert/repos","events_url":"https://api.github.com/users/evert/events{/privacy}","received_events_url":"https://api.github.com/users/evert/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T13:48:07Z","updated_at":"2016-10-17T13:48:07Z","body":"Can you share the exact event you're uploading? This is definitely starting to sound like a bug.\r\n\r\nsabre/dav _should_ currently detect infinitely recurring events, and handle these correctly. This is indeed a common use-case. "}}
{"actor":{"display_login":"evert"}}