{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3261","labels_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3261/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3261/comments","events_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3261/events","html_url":"https://github.com/mozilla/fxa-content-server/issues/3261","id":115133364,"number":3261,"title":"`login` message sent but account is not created when verification email bounces immediately","user":{"login":"ncalexan","id":1097182,"avatar_url":"https://avatars.githubusercontent.com/u/1097182?v=3","gravatar_id":"","url":"https://api.github.com/users/ncalexan","html_url":"https://github.com/ncalexan","followers_url":"https://api.github.com/users/ncalexan/followers","following_url":"https://api.github.com/users/ncalexan/following{/other_user}","gists_url":"https://api.github.com/users/ncalexan/gists{/gist_id}","starred_url":"https://api.github.com/users/ncalexan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncalexan/subscriptions","organizations_url":"https://api.github.com/users/ncalexan/orgs","repos_url":"https://api.github.com/users/ncalexan/repos","events_url":"https://api.github.com/users/ncalexan/events{/privacy}","received_events_url":"https://api.github.com/users/ncalexan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/fxa-content-server/labels/waffle:now","name":"waffle:now","color":"ededed"},{"url":"https://api.github.com/repos/mozilla/fxa-content-server/labels/%E2%9D%A4","name":"❤","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/milestones/64","html_url":"https://github.com/mozilla/fxa-content-server/milestones/FxA-0:%20quality","labels_url":"https://api.github.com/repos/mozilla/fxa-content-server/milestones/64/labels","id":1265659,"number":64,"title":"FxA-0: quality","description":"An ongoing milestone into which we can schedule maintenance tasks, tech-debt paydown, and other code-quality-related issues.","creator":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":77,"state":"open","created_at":"2015-08-21T02:49:53Z","updated_at":"2015-11-05T11:26:12Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-04T19:52:00Z","updated_at":"2015-11-05T15:21:53Z","closed_at":null,"body":"Choose an email that bounces immediately -- the flow will \"unwind\" back to the \"Sign up\" screen (with an error message).  That's fine, but I'm seeing a `login` message sent to `context=fx_fennec_v1` after the \"Choose what to Sync\" flow is completed, but before the unwind, and before the account is created on the server.  That's badness.\r\n\r\n@vlad @shane-tomlinson @leibovic"},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/comments/154091772","html_url":"https://github.com/mozilla/fxa-content-server/issues/3261#issuecomment-154091772","issue_url":"https://api.github.com/repos/mozilla/fxa-content-server/issues/3261","id":154091772,"user":{"login":"shane-tomlinson","id":848085,"avatar_url":"https://avatars.githubusercontent.com/u/848085?v=3","gravatar_id":"","url":"https://api.github.com/users/shane-tomlinson","html_url":"https://github.com/shane-tomlinson","followers_url":"https://api.github.com/users/shane-tomlinson/followers","following_url":"https://api.github.com/users/shane-tomlinson/following{/other_user}","gists_url":"https://api.github.com/users/shane-tomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/shane-tomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shane-tomlinson/subscriptions","organizations_url":"https://api.github.com/users/shane-tomlinson/orgs","repos_url":"https://api.github.com/users/shane-tomlinson/repos","events_url":"https://api.github.com/users/shane-tomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/shane-tomlinson/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T15:21:53Z","updated_at":"2015-11-05T15:21:53Z","body":"Some discussion from IRC:\r\n\r\n> 15:01 <vladikoff> stomlinson, \"if we wait until after the first poll to see if the the email has bounced\", sometimes the bounce might not happen on first poll\r\n> 15:01 <stomlinson> vladikoff: say more?\r\n> 15:02 <vladikoff> stomlinson, basically we cannot safely check \"if bounced\"\r\n> 15:02 <stomlinson> vladikoff: that's my thought too.\r\n> 15:02 <vladikoff> stomlinson, should we provide a message back that \"fxaccounts:email_bounced_revert_everything\"\r\n> 15:02 <stomlinson> vladikoff: the only thing we really know definitively is if the original signup failed, or if the email bounced and the user still has the \"go confirm your email\" tab open.\r\n> 15:05 <stomlinson> vladikoff: I'm not totally convinced of the need b/c the device is polling in the background at the same time as us. Even if the front end is still open and we learn the email bounced, the device should find out within a few second of us that fact too. Perhaps the message is a good idea though, because we could find out 10 seconds before the device, the user\r\n> 15:05 <stomlinson> could feasibly go back in that amount of time and enter a new email before the device re-polls\r\n> 15:05 <stomlinson> vladikoff: the other advantage a message like that would give us is the ability to place an \"I entered the wrong email address\" button on the \"confirm your email\" screen. If the user clicks that, inform the browser so they can reset their state.\r\n> 15:06 <stomlinson> vladikoff: so in the last 2 minutes, I've convinced myself a WebChannel message is a good idea and not sending the \"login\" message is a bad idea.\r\n> 15:06 <stomlinson> or I should say \"delaying the sending of the login message\"\r\n> 15:07 <vladikoff> stomlinson, I wonder if we can use web push to let fennec know it bounced\r\n> 15:07 <vladikoff> stomlinson, or whatever other push\r\n> 15:08 <stomlinson> vladikoff: I was wondering that too. With push the devices are going to stop polling anyways and will find out pretty quickly that the email bounced."}}