{"action":"created","issue":{"url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/2","labels_url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/2/comments","events_url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/2/events","html_url":"https://github.com/netgen/ezplatformsearch/issues/2","id":122064540,"number":2,"title":"Content Copy triggers unhandled error","user":{"login":"harmstyler","id":1421469,"avatar_url":"https://avatars.githubusercontent.com/u/1421469?v=3","gravatar_id":"","url":"https://api.github.com/users/harmstyler","html_url":"https://github.com/harmstyler","followers_url":"https://api.github.com/users/harmstyler/followers","following_url":"https://api.github.com/users/harmstyler/following{/other_user}","gists_url":"https://api.github.com/users/harmstyler/gists{/gist_id}","starred_url":"https://api.github.com/users/harmstyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmstyler/subscriptions","organizations_url":"https://api.github.com/users/harmstyler/orgs","repos_url":"https://api.github.com/users/harmstyler/repos","events_url":"https://api.github.com/users/harmstyler/events{/privacy}","received_events_url":"https://api.github.com/users/harmstyler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-14T15:24:57Z","updated_at":"2015-12-14T15:44:02Z","closed_at":null,"body":"When copying content in the admin, the function `addObject()` fails. It looks like this is because eZ, in the legacy kernel, triggers the `addObject()` before the new location has been committed to the database. The `eZPlatformSearch` plugin seems to require that objects exist in the database in order for the `addObject` function to work (https://github.com/netgen/ezplatformsearch/blob/master/search/plugins/ezplatformsearch/ezplatformsearch.php#L80)."},"comment":{"url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/comments/164471319","html_url":"https://github.com/netgen/ezplatformsearch/issues/2#issuecomment-164471319","issue_url":"https://api.github.com/repos/netgen/ezplatformsearch/issues/2","id":164471319,"user":{"login":"harmstyler","id":1421469,"avatar_url":"https://avatars.githubusercontent.com/u/1421469?v=3","gravatar_id":"","url":"https://api.github.com/users/harmstyler","html_url":"https://github.com/harmstyler","followers_url":"https://api.github.com/users/harmstyler/followers","following_url":"https://api.github.com/users/harmstyler/following{/other_user}","gists_url":"https://api.github.com/users/harmstyler/gists{/gist_id}","starred_url":"https://api.github.com/users/harmstyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmstyler/subscriptions","organizations_url":"https://api.github.com/users/harmstyler/orgs","repos_url":"https://api.github.com/users/harmstyler/repos","events_url":"https://api.github.com/users/harmstyler/events{/privacy}","received_events_url":"https://api.github.com/users/harmstyler/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T15:44:02Z","updated_at":"2015-12-14T15:44:02Z","body":"Sorry, yes, a content object. I am in favor of catching the `NotFoundException`. In that case then could we create a new pending action to make sure the new content does eventually make it to the index? \r\n\r\nIts not perfect. The the new page will not be accessible on the frontend siteaccesses for a few minutes if the site is using the search repository to serve the site, but it seems to be a good compromise to avoid submitting a patch upstream to the legacy kernel."}}