{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/comments/49833593","id":49833593,"diff_hunk":"@@ -28,9 +28,12 @@\n \n from celery import shared_task\n from flask import current_app\n+from flask_mail import Message\n \n \n @shared_task\n-def send_security_email(msg):\n+def send_security_email(data):\n     \"\"\"Celery task to send security email.\"\"\"\n+    msg = Message()\n+    msg.__dict__.update(data)","path":"invenio_accounts/tasks.py","position":21,"original_position":21,"commit_id":"cdc23911cb571a81897a1df4734f129d665f8c51","original_commit_id":"cdc23911cb571a81897a1df4734f129d665f8c51","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"body":"@lnielsen @eamonnmag please check following solution to avoid security issues with pickle serialization. Thanks","created_at":"2016-01-15T09:17:11Z","updated_at":"2016-01-15T09:17:11Z","html_url":"https://github.com/inveniosoftware/invenio-accounts/pull/84#discussion_r49833593","pull_request_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/comments/49833593"},"html":{"href":"https://github.com/inveniosoftware/invenio-accounts/pull/84#discussion_r49833593"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84","id":56059774,"html_url":"https://github.com/inveniosoftware/invenio-accounts/pull/84","diff_url":"https://github.com/inveniosoftware/invenio-accounts/pull/84.diff","patch_url":"https://github.com/inveniosoftware/invenio-accounts/pull/84.patch","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/84","number":84,"state":"open","locked":false,"title":"global: fix Message serialization for celery","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"body":"* Fixes default serializer of task sending Flask-Mail messages.\r\n  (closes #81)\r\n\r\nSigned-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>","created_at":"2016-01-14T16:38:43Z","updated_at":"2016-01-15T09:17:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b326d13a54950c8febbca1344fea97bfd1ea997","assignee":{"login":"lnielsen","id":1698163,"avatar_url":"https://avatars.githubusercontent.com/u/1698163?v=3","gravatar_id":"","url":"https://api.github.com/users/lnielsen","html_url":"https://github.com/lnielsen","followers_url":"https://api.github.com/users/lnielsen/followers","following_url":"https://api.github.com/users/lnielsen/following{/other_user}","gists_url":"https://api.github.com/users/lnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnielsen/subscriptions","organizations_url":"https://api.github.com/users/lnielsen/orgs","repos_url":"https://api.github.com/users/lnielsen/repos","events_url":"https://api.github.com/users/lnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/lnielsen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/milestones/7","html_url":"https://github.com/inveniosoftware/invenio-accounts/milestones/v1.0.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/milestones/7/labels","id":1355017,"number":7,"title":"v1.0.0","description":null,"creator":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":48,"state":"open","created_at":"2015-10-14T09:57:22Z","updated_at":"2016-01-15T08:09:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/84/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/statuses/cdc23911cb571a81897a1df4734f129d665f8c51","head":{"label":"jirikuncar:81-celery-pickled-mail","ref":"81-celery-pickled-mail","sha":"cdc23911cb571a81897a1df4734f129d665f8c51","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"repo":{"id":39998521,"name":"invenio-accounts","full_name":"jirikuncar/invenio-accounts","owner":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jirikuncar/invenio-accounts","description":"","fork":true,"url":"https://api.github.com/repos/jirikuncar/invenio-accounts","forks_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/forks","keys_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/teams","hooks_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/hooks","issue_events_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/issues/events{/number}","events_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/events","assignees_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/assignees{/user}","branches_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/branches{/branch}","tags_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/tags","blobs_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/languages","stargazers_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/stargazers","contributors_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/contributors","subscribers_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/subscribers","subscription_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/subscription","commits_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/contents/{+path}","compare_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/merges","archive_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/downloads","issues_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/issues{/number}","pulls_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/labels{/name}","releases_url":"https://api.github.com/repos/jirikuncar/invenio-accounts/releases{/id}","created_at":"2015-07-31T09:44:12Z","updated_at":"2015-07-31T09:44:13Z","pushed_at":"2016-01-15T09:15:56Z","git_url":"git://github.com/jirikuncar/invenio-accounts.git","ssh_url":"git@github.com:jirikuncar/invenio-accounts.git","clone_url":"https://github.com/jirikuncar/invenio-accounts.git","svn_url":"https://github.com/jirikuncar/invenio-accounts","homepage":null,"size":1151,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inveniosoftware:master","ref":"master","sha":"7c894612cc99c2ea47f72d465bb4c8691a56c24f","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":35280261,"name":"invenio-accounts","full_name":"inveniosoftware/invenio-accounts","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/invenio-accounts","description":"Invenio module for managing user accounts.","fork":false,"url":"https://api.github.com/repos/inveniosoftware/invenio-accounts","forks_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/forks","keys_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/events","assignees_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/merges","archive_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/invenio-accounts/releases{/id}","created_at":"2015-05-08T13:16:58Z","updated_at":"2016-01-15T08:09:36Z","pushed_at":"2016-01-15T09:15:56Z","git_url":"git://github.com/inveniosoftware/invenio-accounts.git","ssh_url":"git@github.com:inveniosoftware/invenio-accounts.git","clone_url":"https://github.com/inveniosoftware/invenio-accounts.git","svn_url":"https://github.com/inveniosoftware/invenio-accounts","homepage":"","size":1209,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":15,"forks":15,"open_issues":15,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84"},"html":{"href":"https://github.com/inveniosoftware/invenio-accounts/pull/84"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/84"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/invenio-accounts/statuses/cdc23911cb571a81897a1df4734f129d665f8c51"}}}}