{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/ios/issues/704","repository_url":"https://api.github.com/repos/owncloud/ios","labels_url":"https://api.github.com/repos/owncloud/ios/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/ios/issues/704/comments","events_url":"https://api.github.com/repos/owncloud/ios/issues/704/events","html_url":"https://github.com/owncloud/ios/issues/704","id":160131773,"number":704,"title":"Problem sharing a Shared Folder","user":{"login":"daorte","id":1828874,"avatar_url":"https://avatars.githubusercontent.com/u/1828874?v=3","gravatar_id":"","url":"https://api.github.com/users/daorte","html_url":"https://github.com/daorte","followers_url":"https://api.github.com/users/daorte/followers","following_url":"https://api.github.com/users/daorte/following{/other_user}","gists_url":"https://api.github.com/users/daorte/gists{/gist_id}","starred_url":"https://api.github.com/users/daorte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daorte/subscriptions","organizations_url":"https://api.github.com/users/daorte/orgs","repos_url":"https://api.github.com/users/daorte/repos","events_url":"https://api.github.com/users/daorte/events{/privacy}","received_events_url":"https://api.github.com/users/daorte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/ios/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/ios/labels/Server%20Involved","name":"Server Involved","color":"fad8c7"},{"url":"https://api.github.com/repos/owncloud/ios/labels/sharing","name":"sharing","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/owncloud/ios/milestones/11","html_url":"https://github.com/owncloud/ios/milestones/3.5.0","labels_url":"https://api.github.com/repos/owncloud/ios/milestones/11/labels","id":1751236,"number":11,"title":"3.5.0","description":"","creator":{"login":"rperezb","id":1846927,"avatar_url":"https://avatars.githubusercontent.com/u/1846927?v=3","gravatar_id":"","url":"https://api.github.com/users/rperezb","html_url":"https://github.com/rperezb","followers_url":"https://api.github.com/users/rperezb/followers","following_url":"https://api.github.com/users/rperezb/following{/other_user}","gists_url":"https://api.github.com/users/rperezb/gists{/gist_id}","starred_url":"https://api.github.com/users/rperezb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rperezb/subscriptions","organizations_url":"https://api.github.com/users/rperezb/orgs","repos_url":"https://api.github.com/users/rperezb/repos","events_url":"https://api.github.com/users/rperezb/events{/privacy}","received_events_url":"https://api.github.com/users/rperezb/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":39,"state":"open","created_at":"2016-05-06T10:09:11Z","updated_at":"2016-07-06T08:03:02Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-14T09:07:17Z","updated_at":"2016-07-06T08:19:02Z","closed_at":null,"body":"Hi! i found an unexpected behavior trying to create a share link from a shared folder\r\n\r\n### Steps to reproduce\r\n1. i have two users, userOne and userTwo\r\n2. userOne shares a folder with full permissions to userTwo\r\n3. userTwo tries to create a share link on a file of his shared folder using the iOS app\r\n4. the iOS app does nothing\r\n\r\n### Expected behaviour\r\nthe iOS app should create the share link\r\n\r\n### Actual behaviour\r\nthe iOS app does nothing\r\n\r\n### Server configuration\r\nWeb server: Apache 2.4\r\nDatabase: MySQL\r\nPHP version: 7\r\nClient: User-Agent: Mozilla/5.0 (iOS) ownCloud-iOS/3.4.9\r\nOwnCloud: 9.0.2.2\r\nDevice model: iPhone 6 Plus iOS 9.3.2\r\n\r\n### Some help\r\nthe app is validating if the user is the owner of the file, in the share API response XML, this `<uid_file_owner>userOne</uid_file_owner>` and this `<displayname_file_owner>userOne</displayname_file_owner>`\r\ntags refers to userOne. If i try to create a share in a NOT shared folder it works correctly\r\n\r\n\r\n---edited by @nasli, added tasks:\r\n\r\nTASKS\r\n- [X] [GIT] Create branch \"reshares_with_user_not_appears\"\r\n- [ ] [GIT] Merge branch \"reshares_with_user_not_appears\"\r\n- [ ] [DEV] Check paths owner file @nasli [BLOCKED] Server share api issue owncloud/core#25302\r\n- [ ] [QA] Create test plan\r\n- [ ] [QA] Validate test plan\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/ios/issues/comments/230708138","html_url":"https://github.com/owncloud/ios/issues/704#issuecomment-230708138","issue_url":"https://api.github.com/repos/owncloud/ios/issues/704","id":230708138,"user":{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T08:19:02Z","updated_at":"2016-07-06T08:19:02Z","body":"Also failing in Android. \r\n\r\nAs user2, the call ```GET [server]:[share_path]/shares?path=/folder1shareto2/file.txt&reshares=false``` returns an empty list. \r\n\r\nThe same call with ```reshares=true```return the expected share with user3.\r\n\r\nThis is not what we would expect from the Share API documentation:\r\n```URL Arguments: reshares - (boolean) returns not only the shares from the current user but all shares from the given file.```\r\n\r\nFrom this I understand that the first call should return the share, that was created by user2. Is not user2 the owner of the share with user3, though it's resharing a file owned by user1?"}}
{"actor":{"display_login":"davivel"}}