{"action":"created","issue":{"url":"https://api.github.com/repos/golemfactory/concent/issues/160","repository_url":"https://api.github.com/repos/golemfactory/concent","labels_url":"https://api.github.com/repos/golemfactory/concent/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/golemfactory/concent/issues/160/comments","events_url":"https://api.github.com/repos/golemfactory/concent/issues/160/events","html_url":"https://github.com/golemfactory/concent/issues/160","id":301192448,"number":160,"title":"[report computed task] Concent does not look at provider's public key when checking if a task is already being processed","user":{"login":"rwrzesien","id":10088909,"avatar_url":"https://avatars0.githubusercontent.com/u/10088909?v=4","gravatar_id":"","url":"https://api.github.com/users/rwrzesien","html_url":"https://github.com/rwrzesien","followers_url":"https://api.github.com/users/rwrzesien/followers","following_url":"https://api.github.com/users/rwrzesien/following{/other_user}","gists_url":"https://api.github.com/users/rwrzesien/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrzesien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrzesien/subscriptions","organizations_url":"https://api.github.com/users/rwrzesien/orgs","repos_url":"https://api.github.com/users/rwrzesien/repos","events_url":"https://api.github.com/users/rwrzesien/events{/privacy}","received_events_url":"https://api.github.com/users/rwrzesien/received_events","type":"User","site_admin":false},"labels":[{"id":735137559,"url":"https://api.github.com/repos/golemfactory/concent/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T21:36:17Z","updated_at":"2018-03-06T12:56:08Z","closed_at":"2018-03-06T12:56:08Z","author_association":"COLLABORATOR","body":"In `handle_send_force_report_computed_task` there is a check:\r\n\r\n```\r\n    if StoredMessage.objects.filter(task_id = client_message.report_computed_task.task_to_compute.compute_task_def['task_id']).exists():\r\n        raise Http400(\"{} is already being processed for this task.\".format(client_message.__class__.__name__))\r\n```\r\n\r\nit should also include filtering by provider's public key and message type. Otherwise client can use prepared message to lock possibility for other clients to start communication for used `task_id`.\r\n\r\nA test which verifies that in `test_auth_report_computed_task.py` is also needed."},"comment":{"url":"https://api.github.com/repos/golemfactory/concent/issues/comments/370772657","html_url":"https://github.com/golemfactory/concent/issues/160#issuecomment-370772657","issue_url":"https://api.github.com/repos/golemfactory/concent/issues/160","id":370772657,"user":{"login":"rwrzesien","id":10088909,"avatar_url":"https://avatars0.githubusercontent.com/u/10088909?v=4","gravatar_id":"","url":"https://api.github.com/users/rwrzesien","html_url":"https://github.com/rwrzesien","followers_url":"https://api.github.com/users/rwrzesien/followers","following_url":"https://api.github.com/users/rwrzesien/following{/other_user}","gists_url":"https://api.github.com/users/rwrzesien/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrzesien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrzesien/subscriptions","organizations_url":"https://api.github.com/users/rwrzesien/orgs","repos_url":"https://api.github.com/users/rwrzesien/repos","events_url":"https://api.github.com/users/rwrzesien/events{/privacy}","received_events_url":"https://api.github.com/users/rwrzesien/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T12:56:08Z","updated_at":"2018-03-06T12:56:08Z","author_association":"COLLABORATOR","body":"According to @cameel comment I am closing it."}}
{"actor":{"display_login":"rwrzesien"}}