{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22692","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22692/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22692/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22692/events","html_url":"https://github.com/owncloud/core/issues/22692","id":136928821,"number":22692,"title":"A user can create an unlimited amount of duplicate public links for a single folder when using the API","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/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-27T15:06:25Z","updated_at":"2016-02-27T15:06:25Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Create a new folder share using the API\r\n2. Create it again using the same POST data\r\n\r\n### Expected behaviour\r\n\r\nThe second request should not go through and a specific error should be returned, indicating to the client that a link already exists\r\n\r\nOR\r\n\r\nThe link which was created earlier should be returned\r\n\r\n### Actual behaviour\r\n\r\nEach request returns a new link object, with a different ID and token.\r\n\r\n### Server configuration\r\n\r\n**ownCloud version:** master\r\n\r\n\r\n#### Browser log\r\n\r\n1st request\r\n\r\n```\r\nid: 624, share_type: 3, uid_owner: \"admin\", displayname_owner: \"admin\", permissions: 1, stime: 1456584648, parent: null, expiration: null, token: \"uaidgEJbXb3DQzj\", uid_file_owner: \"admin\",...\r\n```\r\n\r\n2nd request\r\n\r\n```\r\nid: 625, share_type: 3, uid_owner: \"admin\", displayname_owner: \"admin\", permissions: 1, stime: 1456584745, parent: null, expiration: null, token: \"V1azHym3B4EchAf\", uid_file_owner: \"admin\",...\r\n```\r\n"}}