{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/26778","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/26778/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/26778/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/26778/events","html_url":"https://github.com/owncloud/core/issues/26778","id":193812272,"number":26778,"title":"Hook doesn't work with getRootFolder()","user":{"login":"Kitounet","id":7276217,"avatar_url":"https://avatars.githubusercontent.com/u/7276217?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitounet","html_url":"https://github.com/Kitounet","followers_url":"https://api.github.com/users/Kitounet/followers","following_url":"https://api.github.com/users/Kitounet/following{/other_user}","gists_url":"https://api.github.com/users/Kitounet/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitounet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitounet/subscriptions","organizations_url":"https://api.github.com/users/Kitounet/orgs","repos_url":"https://api.github.com/users/Kitounet/repos","events_url":"https://api.github.com/users/Kitounet/events{/privacy}","received_events_url":"https://api.github.com/users/Kitounet/received_events","type":"User","site_admin":false},"labels":[{"id":12406434,"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"assignees":[{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-12-06T16:06:33Z","updated_at":"2016-12-07T09:13:01Z","closed_at":null,"body":"Hello everyone,\r\n\r\nI'm a beginner in developing owncloud apps and I actually have a problem for implementing the hooks.\r\nI followed this documentation https://doc.owncloud.org/server/9.2/developer_manual/app/hooks.html and tested with the getUserManager() function and it worked. (I saw with the logger if it worked or not)\r\nBut I'm applying the same code's logic with getRootFolder() and nothing happens.\r\n\r\nIt is a knew issues ? or am I doing something bad ?\r\n\r\nThanks to you.\r\n\r\n### Steps to reproduce\r\n1.preWrite\r\n2.preCreate\r\n3.postWrite\r\n4.postCreate\r\n\r\n### Expected behaviour\r\nHook should be called.\r\n\r\n### Actual behaviour\r\nNothing , no error, no debug messages.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 16.04\r\n**Web server:**\r\nApache/2.4.18\r\n**Database:**\r\nSQL Lite\r\n**PHP version:**\r\nPHP 5.6.28\r\n**ownCloud version:** (see ownCloud admin page)\r\n9.2.0\r\n**Updated from an older ownCloud or fresh install:**\r\nfresh install\r\n**Where did you install ownCloud from:**\r\nGit\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/265395008","html_url":"https://github.com/owncloud/core/issues/26778#issuecomment-265395008","issue_url":"https://api.github.com/repos/owncloud/core/issues/26778","id":265395008,"user":{"login":"Kitounet","id":7276217,"avatar_url":"https://avatars.githubusercontent.com/u/7276217?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitounet","html_url":"https://github.com/Kitounet","followers_url":"https://api.github.com/users/Kitounet/followers","following_url":"https://api.github.com/users/Kitounet/following{/other_user}","gists_url":"https://api.github.com/users/Kitounet/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitounet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitounet/subscriptions","organizations_url":"https://api.github.com/users/Kitounet/orgs","repos_url":"https://api.github.com/users/Kitounet/repos","events_url":"https://api.github.com/users/Kitounet/events{/privacy}","received_events_url":"https://api.github.com/users/Kitounet/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:13:01Z","updated_at":"2016-12-07T09:13:01Z","body":"I changed in `types` and it's still the same.\r\nI would have preferred to have a typing error."}}
{"actor":{"display_login":"Kitounet"}}