{"action":"opened","issue":{"url":"https://api.github.com/repos/Gloirin/m2gTest/issues/1405","repository_url":"https://api.github.com/repos/Gloirin/m2gTest","labels_url":"https://api.github.com/repos/Gloirin/m2gTest/issues/1405/labels{/name}","comments_url":"https://api.github.com/repos/Gloirin/m2gTest/issues/1405/comments","events_url":"https://api.github.com/repos/Gloirin/m2gTest/issues/1405/events","html_url":"https://github.com/Gloirin/m2gTest/issues/1405","id":327402417,"number":1405,"title":"0012070:\nREPORT sync-collection results in php out of memory error","user":{"login":"Gloirin","id":24605609,"avatar_url":"https://avatars1.githubusercontent.com/u/24605609?v=4","gravatar_id":"","url":"https://api.github.com/users/Gloirin","html_url":"https://github.com/Gloirin","followers_url":"https://api.github.com/users/Gloirin/followers","following_url":"https://api.github.com/users/Gloirin/following{/other_user}","gists_url":"https://api.github.com/users/Gloirin/gists{/gist_id}","starred_url":"https://api.github.com/users/Gloirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gloirin/subscriptions","organizations_url":"https://api.github.com/users/Gloirin/orgs","repos_url":"https://api.github.com/users/Gloirin/repos","events_url":"https://api.github.com/users/Gloirin/events{/privacy}","received_events_url":"https://api.github.com/users/Gloirin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Gloirin","id":24605609,"avatar_url":"https://avatars1.githubusercontent.com/u/24605609?v=4","gravatar_id":"","url":"https://api.github.com/users/Gloirin","html_url":"https://github.com/Gloirin","followers_url":"https://api.github.com/users/Gloirin/followers","following_url":"https://api.github.com/users/Gloirin/following{/other_user}","gists_url":"https://api.github.com/users/Gloirin/gists{/gist_id}","starred_url":"https://api.github.com/users/Gloirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gloirin/subscriptions","organizations_url":"https://api.github.com/users/Gloirin/orgs","repos_url":"https://api.github.com/users/Gloirin/repos","events_url":"https://api.github.com/users/Gloirin/events{/privacy}","received_events_url":"https://api.github.com/users/Gloirin/received_events","type":"User","site_admin":false},"assignees":[{"login":"Gloirin","id":24605609,"avatar_url":"https://avatars1.githubusercontent.com/u/24605609?v=4","gravatar_id":"","url":"https://api.github.com/users/Gloirin","html_url":"https://github.com/Gloirin","followers_url":"https://api.github.com/users/Gloirin/followers","following_url":"https://api.github.com/users/Gloirin/following{/other_user}","gists_url":"https://api.github.com/users/Gloirin/gists{/gist_id}","starred_url":"https://api.github.com/users/Gloirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gloirin/subscriptions","organizations_url":"https://api.github.com/users/Gloirin/orgs","repos_url":"https://api.github.com/users/Gloirin/repos","events_url":"https://api.github.com/users/Gloirin/events{/privacy}","received_events_url":"https://api.github.com/users/Gloirin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-29T16:44:06Z","updated_at":"2018-05-29T16:44:06Z","closed_at":null,"author_association":"OWNER","body":"**Reported by mschwerin on 27 Jul 2016 16:00**\n\n\nthunderbird + sogo connector execute a REPORT request for a sync-collection. This request fails with an out of memory error if the container_content table has many entries (in my case round about 800MiB).\r\n\r\nThe problem seems to be that if the sync-token is empty a value of zero is used when fetching the history in Tinebase_Container-&gt;getContentHistory. This in turn will return all entries of container_content corresponding to this container.\r\n\r\nI&#039;ve tested this against 2015.07.7 but as the code has not changed this should this be valid for the current version.\n\n**Steps to reproduce:** Create a container_content table with mannnnny entries for the calendar.\r\n\r\nExecute the following:\r\n\r\ncurl --request REPORT --verbose --user &quot;user:pass&quot; --header &quot;Content-Type: text/xml; charset=utf-8&quot; --data &#039;&lt;sync-collection xmlns=&quot;DAV:&quot;&gt;&lt;sync-token/&gt;&lt;sync-level&gt;1&lt;/sync-level&gt;&lt;prop&gt;&lt;getcontenttype/&gt;&lt;getetag/&gt;&lt;/prop&gt;&lt;/sync-collection&gt;&#039; calendar-url\n"}}
{"actor":{"display_login":"Gloirin"}}