{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16735","labels_url":"https://api.github.com/repos/owncloud/core/issues/16735/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16735/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16735/events","html_url":"https://github.com/owncloud/core/issues/16735","id":84620536,"number":16735,"title":"Share API: Two subsequent calls to update a share wipes expire date","user":{"login":"dragotin","id":1070214,"avatar_url":"https://avatars.githubusercontent.com/u/1070214?v=3","gravatar_id":"","url":"https://api.github.com/users/dragotin","html_url":"https://github.com/dragotin","followers_url":"https://api.github.com/users/dragotin/followers","following_url":"https://api.github.com/users/dragotin/following{/other_user}","gists_url":"https://api.github.com/users/dragotin/gists{/gist_id}","starred_url":"https://api.github.com/users/dragotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragotin/subscriptions","organizations_url":"https://api.github.com/users/dragotin/orgs","repos_url":"https://api.github.com/users/dragotin/repos","events_url":"https://api.github.com/users/dragotin/events{/privacy}","received_events_url":"https://api.github.com/users/dragotin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/42","html_url":"https://github.com/owncloud/core/milestones/8.0.5-next-maintenance","labels_url":"https://api.github.com/repos/owncloud/core/milestones/42/labels","id":1090951,"number":42,"title":"8.0.5-next-maintenance","description":null,"creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":7,"state":"open","created_at":"2015-04-30T11:59:10Z","updated_at":"2015-06-09T15:10:41Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-06-03T15:26:44Z","updated_at":"2015-06-09T15:10:41Z","closed_at":"2015-06-09T15:10:41Z","body":"By testing this issue:\r\nhttps://github.com/owncloud/client/issues/3265\r\nI found that the OCS share API (on stable8 on commit d1f99f10036dd859a5fa36cddeb4663665a17c58) wipes the expire date. Here is what happens:\r\n\r\nTo update an existing share, the client sends two PUT requests to the share: The first sets the (proper) expire date, and the second sets an empty password. Remember that we need to do two PUTs because the API only accepts one change item per request.\r\n\r\nAfter the second PUT, the client fetches the share again using GET, and the result is that the expire date of the share is null instead of the value sent in the first PUT.\r\n"}}