{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/fas/issues/173","repository_url":"https://api.github.com/repos/fedora-infra/fas","labels_url":"https://api.github.com/repos/fedora-infra/fas/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/fas/issues/173/comments","events_url":"https://api.github.com/repos/fedora-infra/fas/issues/173/events","html_url":"https://github.com/fedora-infra/fas/issues/173","id":164324392,"number":173,"title":"[FAS3]  Unique contrant failed on people.ircnick when two accounts are created with blank contact info","user":{"login":"skrzepto","id":3166193,"avatar_url":"https://avatars.githubusercontent.com/u/3166193?v=3","gravatar_id":"","url":"https://api.github.com/users/skrzepto","html_url":"https://github.com/skrzepto","followers_url":"https://api.github.com/users/skrzepto/followers","following_url":"https://api.github.com/users/skrzepto/following{/other_user}","gists_url":"https://api.github.com/users/skrzepto/gists{/gist_id}","starred_url":"https://api.github.com/users/skrzepto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrzepto/subscriptions","organizations_url":"https://api.github.com/users/skrzepto/orgs","repos_url":"https://api.github.com/users/skrzepto/repos","events_url":"https://api.github.com/users/skrzepto/events{/privacy}","received_events_url":"https://api.github.com/users/skrzepto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fedora-infra/fas/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/fedora-infra/fas/labels/FAS%203.0","name":"FAS 3.0","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-07T14:35:21Z","updated_at":"2016-07-13T16:10:21Z","closed_at":null,"body":"Summary: When creating two accounts with the contact page blank  like the image below shows.\r\n![selection_022](https://cloud.githubusercontent.com/assets/3166193/16656828/c0987832-4425-11e6-9719-3c25dedb2b1a.png)\r\n\r\n\r\nThe second account throws an error\r\n\r\nOutput\r\n```\r\nIntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: people.ircnick [SQL: u'INSERT INTO people (username, password, fullname, ircnick, avatar, avatar_id, introduction, postal_address, country_code, locale, birthday, birthday_month, telephone, facsimile, affiliation, bio, timezone, gpg_fingerprint, ssh_key, email, recovery_email, bugzilla_email, email_token, unverified_email, security_question, security_answer, login_attempt, password_token, old_password, certificate_serial, status, status_timestamp, privacy, email_alias, blog_rss, latitude, longitude, fas_token, github_token, twitter_token, login_timestamp, creation_timestamp, update_timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)'] [parameters: (u'test_user', '$2a$10$UbFdhCoFnRUuN5CpoVWWMecAxxn5Ezg5WlfDuD3DaLIKJfZR93Nfi', u'test user', u'', u'', None, u'', u'', None, u'en_US', None, None, u'', None, None, None, u'UTC', None, None, u'test@user.com', None, None, None, None, u'-', u'-', None, 'f3852ef679423727e2c77b2f18b6413f1a755b96', None, 1, 3, '2016-07-07 14:24:47.587360', 0, 1, None, None, None, None, None, None, '2016-07-07 14:24:47.587375')]\r\n\r\n```\r\n\r\nDB image of original data\r\n![selection_023](https://cloud.githubusercontent.com/assets/3166193/16656873/efcc12a8-4425-11e6-9a46-13925c7da7ef.png)\r\n\r\nNotice that the ircnick is an empty string and not None.\r\n\r\nWe either need to force the user to input data that is not blank or if blank data is detected then we must insert None into the db instead.\r\n"},"comment":{"url":"https://api.github.com/repos/fedora-infra/fas/issues/comments/232404988","html_url":"https://github.com/fedora-infra/fas/issues/173#issuecomment-232404988","issue_url":"https://api.github.com/repos/fedora-infra/fas/issues/173","id":232404988,"user":{"login":"skrzepto","id":3166193,"avatar_url":"https://avatars.githubusercontent.com/u/3166193?v=3","gravatar_id":"","url":"https://api.github.com/users/skrzepto","html_url":"https://github.com/skrzepto","followers_url":"https://api.github.com/users/skrzepto/followers","following_url":"https://api.github.com/users/skrzepto/following{/other_user}","gists_url":"https://api.github.com/users/skrzepto/gists{/gist_id}","starred_url":"https://api.github.com/users/skrzepto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrzepto/subscriptions","organizations_url":"https://api.github.com/users/skrzepto/orgs","repos_url":"https://api.github.com/users/skrzepto/repos","events_url":"https://api.github.com/users/skrzepto/events{/privacy}","received_events_url":"https://api.github.com/users/skrzepto/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T16:10:20Z","updated_at":"2016-07-13T16:10:20Z","body":"@laxathom I was trying to write unit tests for the registration and can't seem to mockout the Captcha. Any thoughts?"}}
{"actor":{"display_login":"skrzepto"}}