{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/3466","labels_url":"https://api.github.com/repos/bolt/bolt/issues/3466/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/3466/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/3466/events","html_url":"https://github.com/bolt/bolt/issues/3466","id":72195405,"number":3466,"title":"Can't update non published entries","user":{"login":"pygillier","id":990787,"avatar_url":"https://avatars.githubusercontent.com/u/990787?v=3","gravatar_id":"","url":"https://api.github.com/users/pygillier","html_url":"https://github.com/pygillier","followers_url":"https://api.github.com/users/pygillier/followers","following_url":"https://api.github.com/users/pygillier/following{/other_user}","gists_url":"https://api.github.com/users/pygillier/gists{/gist_id}","starred_url":"https://api.github.com/users/pygillier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pygillier/subscriptions","organizations_url":"https://api.github.com/users/pygillier/orgs","repos_url":"https://api.github.com/users/pygillier/repos","events_url":"https://api.github.com/users/pygillier/events{/privacy}","received_events_url":"https://api.github.com/users/pygillier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-30T15:29:24Z","updated_at":"2015-07-21T17:17:39Z","closed_at":"2015-04-30T18:00:34Z","body":"When I try to update an entry (default content-type) which is in draft state, the updates can't be saved.\r\n\r\nAfter checking and debugging, it seems to be related to endpoint.\r\n\r\nIn file src/Storage.php, line 1245: check is done on status & endpoint : status is unset and $app['end'] is set to async. So, the condition will validate and set status in query to \"status = published\".\r\n\r\nSo, no object will be returned and update will fail.\r\n\r\nTested on 2.1.8 and it seems to be linked to this commit : cfbb0ec9d51563bf3a117acf98d395be61b71b54"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/123406800","html_url":"https://github.com/bolt/bolt/issues/3466#issuecomment-123406800","issue_url":"https://api.github.com/repos/bolt/bolt/issues/3466","id":123406800,"user":{"login":"fabschurt","id":8007715,"avatar_url":"https://avatars.githubusercontent.com/u/8007715?v=3","gravatar_id":"","url":"https://api.github.com/users/fabschurt","html_url":"https://github.com/fabschurt","followers_url":"https://api.github.com/users/fabschurt/followers","following_url":"https://api.github.com/users/fabschurt/following{/other_user}","gists_url":"https://api.github.com/users/fabschurt/gists{/gist_id}","starred_url":"https://api.github.com/users/fabschurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabschurt/subscriptions","organizations_url":"https://api.github.com/users/fabschurt/orgs","repos_url":"https://api.github.com/users/fabschurt/repos","events_url":"https://api.github.com/users/fabschurt/events{/privacy}","received_events_url":"https://api.github.com/users/fabschurt/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T17:17:39Z","updated_at":"2015-07-21T17:17:39Z","body":"This problem is still present in `v2.2.4`. I doubt that 0037c11 or 85fe99c are related to this problem at all (even though I concede that I'm having a hard time figuring out the big picture here). All I know is that if I revert cfbb0ec, it solves the problem.\r\n\r\nI'm kind of puzzled by cfbb0ec. Its title reads **Make sure we set the status correctly for 'async' requests.**, so I'd expect the commit to fix a problem related to the `async` end, but AFAIK it introduces a bug instead. Moreover, is there actually a point in forcing the `published` status criteria for other ends than `frontend`?"}}