{"action":"created","issue":{"url":"https://api.github.com/repos/pydio/pydio-core/issues/928","labels_url":"https://api.github.com/repos/pydio/pydio-core/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/pydio/pydio-core/issues/928/comments","events_url":"https://api.github.com/repos/pydio/pydio-core/issues/928/events","html_url":"https://github.com/pydio/pydio-core/issues/928","id":89609054,"number":928,"title":"Fix for \"Can not find repository id\" when using access.smb module","user":{"login":"mwehr","id":1297622,"avatar_url":"https://avatars.githubusercontent.com/u/1297622?v=3","gravatar_id":"","url":"https://api.github.com/users/mwehr","html_url":"https://github.com/mwehr","followers_url":"https://api.github.com/users/mwehr/followers","following_url":"https://api.github.com/users/mwehr/following{/other_user}","gists_url":"https://api.github.com/users/mwehr/gists{/gist_id}","starred_url":"https://api.github.com/users/mwehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwehr/subscriptions","organizations_url":"https://api.github.com/users/mwehr/orgs","repos_url":"https://api.github.com/users/mwehr/repos","events_url":"https://api.github.com/users/mwehr/events{/privacy}","received_events_url":"https://api.github.com/users/mwehr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T16:42:33Z","updated_at":"2015-06-19T18:31:42Z","closed_at":null,"body":"Hi,\r\n\r\nI've found a problem when using the access.smb (smbclient) module.\r\nI've set up a workspace with a SMB mount where the user does not have write access to SMB root path.\r\nRecycle-bin is disable.\r\n\r\nIn case there are some SMB configuration erros and a user opens the corresponding workspace he will get \"Can not find repository id\".\r\nThe error persists even the configurations erros are solved.\r\n\r\nIt looks like that the problem appears at plugins/access.smb/smb.php line 312.\r\nFor some reason the $_SESSION[\"COUNT\"]  is set to 1 but the $_SESSION[\"disk\"] key doesn't exist.\r\nIt seems that it could happen that we detect that $_SESSION[\"COUNT\"] == 0  -> go into the \"== 0\" condition of the IF part an then fail in the smb::look() call at line 317, so we never get $_SESSION[\"disk\"] set.\r\n\r\nA fix could be to move the $_SESSION[\"COUNT\"] = 1;  from line 313 to line 318.\r\nOr add \"|| !isset($_SESSION[\"disk\"]\" to the IF condition at line 312.\r\n\r\nregards \r\n\r\nMario"},"comment":{"url":"https://api.github.com/repos/pydio/pydio-core/issues/comments/113599123","html_url":"https://github.com/pydio/pydio-core/issues/928#issuecomment-113599123","issue_url":"https://api.github.com/repos/pydio/pydio-core/issues/928","id":113599123,"user":{"login":"mwehr","id":1297622,"avatar_url":"https://avatars.githubusercontent.com/u/1297622?v=3","gravatar_id":"","url":"https://api.github.com/users/mwehr","html_url":"https://github.com/mwehr","followers_url":"https://api.github.com/users/mwehr/followers","following_url":"https://api.github.com/users/mwehr/following{/other_user}","gists_url":"https://api.github.com/users/mwehr/gists{/gist_id}","starred_url":"https://api.github.com/users/mwehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwehr/subscriptions","organizations_url":"https://api.github.com/users/mwehr/orgs","repos_url":"https://api.github.com/users/mwehr/repos","events_url":"https://api.github.com/users/mwehr/events{/privacy}","received_events_url":"https://api.github.com/users/mwehr/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T18:31:42Z","updated_at":"2015-06-19T18:31:42Z","body":"Yeap will try to revert the changes.\r\nI just want to mention,  I'm not using WebDav my error occurs when using the Web GUI."}}