{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/17151","labels_url":"https://api.github.com/repos/owncloud/core/issues/17151/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/17151/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/17151/events","html_url":"https://github.com/owncloud/core/issues/17151","id":90748823,"number":17151,"title":"getUserFolder() in AppFrameWork should work with tokens","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/dev:appframework","name":"dev:appframework","color":"FF9966"},{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-24T18:09:43Z","updated_at":"2015-07-02T14:36:13Z","closed_at":"2015-07-02T14:36:13Z","body":"An app shouldn't have to try and figure out which folder a token gives access to.\r\nThe system should be able to figure out which user has to be used and use it to compute the reply it will give to the `getUserFolder()` request.\r\n\r\n@Raydiation @LukasReschke \r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/118052062","html_url":"https://github.com/owncloud/core/issues/17151#issuecomment-118052062","issue_url":"https://api.github.com/repos/owncloud/core/issues/17151","id":118052062,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T14:36:13Z","updated_at":"2015-07-02T14:36:13Z","body":"After discussing it via IRC, it's clear that getUserFolder($user) should always be passed a user. The way to make it consistent with apps is to always get a userId before asking for the folder."}}