{"action":"created","issue":{"url":"https://api.github.com/repos/maidsafe/safe_client/issues/146","labels_url":"https://api.github.com/repos/maidsafe/safe_client/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/maidsafe/safe_client/issues/146/comments","events_url":"https://api.github.com/repos/maidsafe/safe_client/issues/146/events","html_url":"https://github.com/maidsafe/safe_client/issues/146","id":103519663,"number":146,"title":"Example : self_authentication - Intermittently hangs","user":{"login":"rossmuir","id":6030823,"avatar_url":"https://avatars.githubusercontent.com/u/6030823?v=3","gravatar_id":"","url":"https://api.github.com/users/rossmuir","html_url":"https://github.com/rossmuir","followers_url":"https://api.github.com/users/rossmuir/followers","following_url":"https://api.github.com/users/rossmuir/following{/other_user}","gists_url":"https://api.github.com/users/rossmuir/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmuir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmuir/subscriptions","organizations_url":"https://api.github.com/users/rossmuir/orgs","repos_url":"https://api.github.com/users/rossmuir/repos","events_url":"https://api.github.com/users/rossmuir/events{/privacy}","received_events_url":"https://api.github.com/users/rossmuir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T14:11:56Z","updated_at":"2015-08-28T08:42:48Z","closed_at":"2015-08-28T08:42:48Z","body":"The example : self_authentication - Intermittently hangs at `Trying to log in ...` when incorrect credentials are passed.\r\n```\r\nuser@machine:~/SAFENetwork_examples$ ./self_authentication\r\n\r\nDo you already have an account created (enter Y for yes) ?\r\nN\r\n\r\n\tAccount Creation\r\n\t================\r\n\r\n------------ Enter Keyword ---------------\r\nross\r\n\r\n\r\n------------ Enter Password --------------\r\nross\r\n\r\n\r\n--------- Enter PIN (4 Digits) -----------\r\n1234\r\n\r\nTrying to create an account ...\r\nAccount Created Successfully !!\r\n\r\n\r\n\tAuto Account Login\r\n\t==================\r\n\r\nTrying to log into the created account using supplied credentials ...\r\nAccount Login Successful !!\r\n\r\n\r\n\tManual Account Login\r\n\t====================\r\n\r\n------------ Enter Keyword ---------------\r\nross\r\n\r\n\r\n------------ Enter Password --------------\r\nross\r\n\r\n\r\n--------- Enter PIN (4 Digits) -----------\r\n4321\r\n\r\nTrying to log in ...\r\n\r\n\r\n```\r\n\r\nExpect to see `Account Login Failed !! Reason: ClientError::SymmetricDecipherFailure`"},"comment":{"url":"https://api.github.com/repos/maidsafe/safe_client/issues/comments/135683366","html_url":"https://github.com/maidsafe/safe_client/issues/146#issuecomment-135683366","issue_url":"https://api.github.com/repos/maidsafe/safe_client/issues/146","id":135683366,"user":{"login":"ustulation","id":8788153,"avatar_url":"https://avatars.githubusercontent.com/u/8788153?v=3","gravatar_id":"","url":"https://api.github.com/users/ustulation","html_url":"https://github.com/ustulation","followers_url":"https://api.github.com/users/ustulation/followers","following_url":"https://api.github.com/users/ustulation/following{/other_user}","gists_url":"https://api.github.com/users/ustulation/gists{/gist_id}","starred_url":"https://api.github.com/users/ustulation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ustulation/subscriptions","organizations_url":"https://api.github.com/users/ustulation/orgs","repos_url":"https://api.github.com/users/ustulation/repos","events_url":"https://api.github.com/users/ustulation/events{/privacy}","received_events_url":"https://api.github.com/users/ustulation/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T08:42:48Z","updated_at":"2015-08-28T08:42:48Z","body":"Nope .. The behavior is epected .. this is not the case of `SymmetricDecipherFailure`. Explanation:\r\n<1> Keyword and Key generate the user id .. and this is the location of session packet on the network\r\n<2> Password and Key generate crypto-keys which if wrong will result in `SymmetricDecipherFailure`\r\n\r\nThe problem is Pin appears in both above. So when you give the wrong PIN, the user id generated is wrong, hence the session packet is not found in the network. The Symmetric Decipher only happens once you fetch the packet. If the fetching itself fails, it is due to an invalid GET and invalid getters are treated as hackers and nothing is returned to them so the wait is infinite.\r\n\r\nThis behavior is **not** intermittent .. it should be consistent. You will get symmetric decipher error if only the password is wrong since the correct Keyword and PIN will have fetched the session packet.\r\n\r\nThe timeouts etc need to be built in the application using these Client modules (no timer operations in maidsafe client modules should be there - at-least according to me - the flexibility is with app - devs to do what they want to do)\r\n \r\nSo issue reported is expected."}}