{"action":"created","issue":{"url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/2886","repository_url":"https://api.github.com/repos/umbraco/Umbraco-CMS","labels_url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/2886/labels{/name}","comments_url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/2886/comments","events_url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/2886/events","html_url":"https://github.com/umbraco/Umbraco-CMS/issues/2886","id":355542384,"node_id":"MDU6SXNzdWUzNTU1NDIzODQ=","number":2886,"title":"Media Picker should not show deleted items","user":{"login":"arknu","id":4654741,"node_id":"MDQ6VXNlcjQ2NTQ3NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/4654741?v=4","gravatar_id":"","url":"https://api.github.com/users/arknu","html_url":"https://github.com/arknu","followers_url":"https://api.github.com/users/arknu/followers","following_url":"https://api.github.com/users/arknu/following{/other_user}","gists_url":"https://api.github.com/users/arknu/gists{/gist_id}","starred_url":"https://api.github.com/users/arknu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arknu/subscriptions","organizations_url":"https://api.github.com/users/arknu/orgs","repos_url":"https://api.github.com/users/arknu/repos","events_url":"https://api.github.com/users/arknu/events{/privacy}","received_events_url":"https://api.github.com/users/arknu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-30T11:26:34Z","updated_at":"2018-08-30T11:48:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This is somewhat related to http://issues.umbraco.org/issue/U4-9616\r\n\r\nI had a customer run into this problem: The media picker remembers the last folder used. However, if the folder is deleted and the media picker opened again, it still opens to the last folder - even though that folder is now deleted. You can still select items from the folder. In this case, the client was confused, as the folder (at a glance) was identical to a later uploaded folder.\r\n\r\nIn a broader sense, the media picker should not in any way (be it browsing or searching) show or allow selection of deleted media items.\r\n\r\n\r\n### Reproduction\r\n\r\n1. Create a folder and upload some images\r\n2. Browse to the folder in a media picker and select a few. The media picker will remember the last-used folder.\r\n3. Go the media section and delete the folder you created earlier\r\n4. Create a new folder and upload the same images (plus a few others to tell them apart)\r\n5. Go back and open the media picker again. Note that it still shows the now-deleted folder. You can select files from this folder without issues.\r\n\r\n### Expected result\r\nThe media picker should go back to the root, since the previous item is no longer valid\r\n\r\nAlso, it should not be possible to find items via search\r\n\r\n### Actual result\r\nThe deleted folder is still shown and items can be selected\r\n"},"comment":{"url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/comments/417291117","html_url":"https://github.com/umbraco/Umbraco-CMS/issues/2886#issuecomment-417291117","issue_url":"https://api.github.com/repos/umbraco/Umbraco-CMS/issues/2886","id":417291117,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzI5MTExNw==","user":{"login":"abjerner","id":3634580,"node_id":"MDQ6VXNlcjM2MzQ1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/3634580?v=4","gravatar_id":"","url":"https://api.github.com/users/abjerner","html_url":"https://github.com/abjerner","followers_url":"https://api.github.com/users/abjerner/followers","following_url":"https://api.github.com/users/abjerner/following{/other_user}","gists_url":"https://api.github.com/users/abjerner/gists{/gist_id}","starred_url":"https://api.github.com/users/abjerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abjerner/subscriptions","organizations_url":"https://api.github.com/users/abjerner/orgs","repos_url":"https://api.github.com/users/abjerner/repos","events_url":"https://api.github.com/users/abjerner/events{/privacy}","received_events_url":"https://api.github.com/users/abjerner/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T11:48:27Z","updated_at":"2018-08-30T11:48:27Z","author_association":"CONTRIBUTOR","body":"@arknu ahh - I keep forgetting the difference between last used folder and start node. I think you're correct then ;)\r\n\r\n#H5IS"}}
{"actor":{"display_login":"abjerner"}}