{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/24114","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/24114/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/24114/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/24114/events","html_url":"https://github.com/owncloud/core/issues/24114","id":149708572,"number":24114,"title":"Reset storage availability when external storage config changed","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_external","name":"app:files_external","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/62","html_url":"https://github.com/owncloud/core/milestones/9.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/62/labels","id":1322460,"number":62,"title":"9.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":740,"closed_issues":492,"state":"open","created_at":"2015-09-24T16:30:14Z","updated_at":"2016-04-20T09:13:07Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-20T09:13:07Z","updated_at":"2016-04-20T09:13:07Z","closed_at":null,"body":"Whenever an external storage config has changed, the availability check for the storage needs to be reset to make sure the web UI can find it instead of assuming it's still unavailable.\r\n\r\nThis situation can be triggered by mounting an external storage, accessing it, then changing the remote password to make it unavailable. Then change the password in the config too.\r\n\r\nThere are three places where resetting the availability flag/timestamp should happen, if possible:\r\n- as admin when changing the config for a system-wide mount (might be tricky to resolve to storages)\r\n- as user when changing the config for a personal mount\r\n- as user when entering a new password in the \"credentials changed, please enter new password\" dialog\r\n\r\nThe reason for resetting the flag is because whenever a user enters a new password, the storage might still be marked unavailable, so the user might think the password was wrong and will reenter it.\r\n\r\n@icewind1991 @Xenopathic @MorrisJobke \r\n"}}