{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/21951","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/21951/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/21951/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/21951/events","html_url":"https://github.com/owncloud/core/issues/21951","id":129145917,"number":21951,"title":"Warning appears to every user not allowed to connect to external storage using login credentials and no red row.","user":{"login":"SergioBertolinSG","id":9048796,"avatar_url":"https://avatars.githubusercontent.com/u/9048796?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBertolinSG","html_url":"https://github.com/SergioBertolinSG","followers_url":"https://api.github.com/users/SergioBertolinSG/followers","following_url":"https://api.github.com/users/SergioBertolinSG/following{/other_user}","gists_url":"https://api.github.com/users/SergioBertolinSG/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBertolinSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBertolinSG/subscriptions","organizations_url":"https://api.github.com/users/SergioBertolinSG/orgs","repos_url":"https://api.github.com/users/SergioBertolinSG/repos","events_url":"https://api.github.com/users/SergioBertolinSG/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBertolinSG/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/sev3-medium","name":"sev3-medium","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"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":255,"closed_issues":1207,"state":"open","created_at":"2015-09-24T16:30:14Z","updated_at":"2016-06-27T11:46:26Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-01-27T13:33:55Z","updated_at":"2016-06-27T12:02:06Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Enable external storage and mount a SFTP folder using login credentials store in session (probably happening with other storages and saving it in DB as well) available for all users.\r\n2. Using a user which doesn't have access to that SFTP go to files view.\r\n\r\n\r\n### Expected behaviour\r\nSFTP folder doesn't appear.\r\n\r\nOr SFTP folder appears with a red row indicating that login credentials are not met.\r\n\r\n### Actual behaviour\r\nA warning message appears saying that a mounted point cannot be used. Saying that a row with a red background appears, which doesn't happen. \r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 14.04\r\n\r\n**Web server:**\r\nApache\r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\n5.5.9\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\nMaster branch\r\n{\"installed\":true,\"maintenance\":false,\"version\":\"9.0.0.6\",\"versionstring\":\"9.0 pre alpha\",\"edition\":\"\"}\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nFresh\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n\r\n```\r\n\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nYes SFTP.\r\n\r\n**Are you using encryption:** \r\nNo\r\n\r\n**Logs**\r\n\r\n```\r\n{\"reqId\":\"UuHo5r9D7FmT+hE9MTLM\",\"remoteAddr\":\"82.159.139.58\",\"app\":\"files_external\",\"message\":\"Exception: {\\\"Exception\\\":\\\"Exception\\\",\\\"Message\\\":\\\"Login failed\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php(154): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->getConnection()\\\\n#1 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/config.php(232): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->test(false)\\\\n#2 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/storagescontroller.php(244): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false)\\\\n#3 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/userglobalstoragescontroller.php(112): OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\StoragesController->updateStorageStatus(Object(OCA\\\\\\\\Files_external\\\\\\\\Lib\\\\\\\\StorageConfig))\\\\n#4 [internal function]: OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\UserGlobalStoragesController->show(1)\\\\n#5 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\\\n#6 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(89): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->executeController(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\UserGlobalStoragesController), 'show')\\\\n#7 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/app.php(110): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->dispatch(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\UserGlobalStoragesController), 'show')\\\\n#8 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/routing\\\\\\/routeactionhandler.php(45): OC\\\\\\\\AppFramework\\\\\\\\App::main('UserGlobalStora...', 'show', Object(OC\\\\\\\\AppFramework\\\\\\\\DependencyInjection\\\\\\\\DIContainer), Array)\\\\n#9 [internal function]: OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler->__invoke(Array)\\\\n#10 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(273): call_user_func(Object(OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler), Array)\\\\n#11 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/base.php(864): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/files_ext...')\\\\n#12 \\\\\\/opt\\\\\\/owncloud\\\\\\/index.php(39): OC::handleRequest()\\\\n#13 {main}\\\",\\\"File\\\":\\\"\\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php\\\",\\\"Line\\\":139}\",\"level\":3,\"time\":\"2016-01-27T13:31:12+00:00\"}\r\n{\"reqId\":\"cSirEUyKnHPT3jRzpFPi\",\"remoteAddr\":\"82.159.139.58\",\"app\":\"files_external\",\"message\":\"Exception: {\\\"Exception\\\":\\\"Exception\\\",\\\"Message\\\":\\\"Login failed\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php(154): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->getConnection()\\\\n#1 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/config.php(232): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->test(false)\\\\n#2 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/storagescontroller.php(244): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false)\\\\n#3 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/storagescontroller.php(290): OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\StoragesController->updateStorageStatus(Object(OCA\\\\\\\\Files_external\\\\\\\\Lib\\\\\\\\StorageConfig))\\\\n#4 [internal function]: OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\StoragesController->show(1)\\\\n#5 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\\\n#6 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(89): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->executeController(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\GlobalStoragesController), 'show')\\\\n#7 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/app.php(110): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->dispatch(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\GlobalStoragesController), 'show')\\\\n#8 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/routing\\\\\\/routeactionhandler.php(45): OC\\\\\\\\AppFramework\\\\\\\\App::main('GlobalStoragesC...', 'show', Object(OC\\\\\\\\AppFramework\\\\\\\\DependencyInjection\\\\\\\\DIContainer), Array)\\\\n#9 [internal function]: OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler->__invoke(Array)\\\\n#10 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(273): call_user_func(Object(OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler), Array)\\\\n#11 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/base.php(864): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/files_ext...')\\\\n#12 \\\\\\/opt\\\\\\/owncloud\\\\\\/index.php(39): OC::handleRequest()\\\\n#13 {main}\\\",\\\"File\\\":\\\"\\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php\\\",\\\"Line\\\":139}\",\"level\":3,\"time\":\"2016-01-27T13:31:16+00:00\"}\r\n{\"reqId\":\"Lk+apoH+T3+ZGl0GlL29\",\"remoteAddr\":\"82.159.139.58\",\"app\":\"files_external\",\"message\":\"Exception: {\\\"Exception\\\":\\\"Exception\\\",\\\"Message\\\":\\\"Login failed\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php(154): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->getConnection()\\\\n#1 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/config.php(232): OC\\\\\\\\Files\\\\\\\\Storage\\\\\\\\SFTP->test(false)\\\\n#2 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/storagescontroller.php(244): OC_Mount_Config::getBackendStatus('\\\\\\\\OC\\\\\\\\Files\\\\\\\\Stora...', Array, false)\\\\n#3 \\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/controller\\\\\\/globalstoragescontroller.php(174): OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\StoragesController->updateStorageStatus(Object(OCA\\\\\\\\Files_external\\\\\\\\Lib\\\\\\\\StorageConfig))\\\\n#4 [internal function]: OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\GlobalStoragesController->update(1, 'SFTP', 'sftp', 'password::sessi...', Array, Array, Array, Array, 100)\\\\n#5 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\\\n#6 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(89): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->executeController(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\GlobalStoragesController), 'update')\\\\n#7 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/app.php(110): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->dispatch(Object(OCA\\\\\\\\Files_External\\\\\\\\Controller\\\\\\\\GlobalStoragesController), 'update')\\\\n#8 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/routing\\\\\\/routeactionhandler.php(45): OC\\\\\\\\AppFramework\\\\\\\\App::main('GlobalStoragesC...', 'update', Object(OC\\\\\\\\AppFramework\\\\\\\\DependencyInjection\\\\\\\\DIContainer), Array)\\\\n#9 [internal function]: OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler->__invoke(Array)\\\\n#10 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(273): call_user_func(Object(OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler), Array)\\\\n#11 \\\\\\/opt\\\\\\/owncloud\\\\\\/lib\\\\\\/base.php(864): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/files_ext...')\\\\n#12 \\\\\\/opt\\\\\\/owncloud\\\\\\/index.php(39): OC::handleRequest()\\\\n#13 {main}\\\",\\\"File\\\":\\\"\\\\\\/opt\\\\\\/owncloud\\\\\\/apps\\\\\\/files_external\\\\\\/lib\\\\\\/sftp.php\\\",\\\"Line\\\":139}\",\"level\":3,\"time\":\"2016-01-27T13:31:18+00:00\"}\r\n```\r\n\r\n### Client configuration\r\n\r\n**browser**\r\nChrome\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/228726469","html_url":"https://github.com/owncloud/core/issues/21951#issuecomment-228726469","issue_url":"https://api.github.com/repos/owncloud/core/issues/21951","id":228726469,"user":{"login":"SergioBertolinSG","id":9048796,"avatar_url":"https://avatars.githubusercontent.com/u/9048796?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBertolinSG","html_url":"https://github.com/SergioBertolinSG","followers_url":"https://api.github.com/users/SergioBertolinSG/followers","following_url":"https://api.github.com/users/SergioBertolinSG/following{/other_user}","gists_url":"https://api.github.com/users/SergioBertolinSG/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBertolinSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBertolinSG/subscriptions","organizations_url":"https://api.github.com/users/SergioBertolinSG/orgs","repos_url":"https://api.github.com/users/SergioBertolinSG/repos","events_url":"https://api.github.com/users/SergioBertolinSG/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBertolinSG/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T12:02:05Z","updated_at":"2016-06-27T12:02:05Z","body":"No, I think it is not related. I just thought it was fixed because that row is only missing after the login, but later it appears."}}
{"actor":{"display_login":"SergioBertolinSG"}}