{"action":"created","issue":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/304","labels_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/304/comments","events_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/304/events","html_url":"https://github.com/AtlasOfLivingAustralia/biocollect/issues/304","id":119114813,"number":304,"title":"Record creation throws an exception.","user":{"login":"sat01a","id":4197871,"avatar_url":"https://avatars.githubusercontent.com/u/4197871?v=3","gravatar_id":"","url":"https://api.github.com/users/sat01a","html_url":"https://github.com/sat01a","followers_url":"https://api.github.com/users/sat01a/followers","following_url":"https://api.github.com/users/sat01a/following{/other_user}","gists_url":"https://api.github.com/users/sat01a/gists{/gist_id}","starred_url":"https://api.github.com/users/sat01a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sat01a/subscriptions","organizations_url":"https://api.github.com/users/sat01a/orgs","repos_url":"https://api.github.com/users/sat01a/repos","events_url":"https://api.github.com/users/sat01a/events{/privacy}","received_events_url":"https://api.github.com/users/sat01a/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"m-r-c","id":7333671,"avatar_url":"https://avatars.githubusercontent.com/u/7333671?v=3","gravatar_id":"","url":"https://api.github.com/users/m-r-c","html_url":"https://github.com/m-r-c","followers_url":"https://api.github.com/users/m-r-c/followers","following_url":"https://api.github.com/users/m-r-c/following{/other_user}","gists_url":"https://api.github.com/users/m-r-c/gists{/gist_id}","starred_url":"https://api.github.com/users/m-r-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-r-c/subscriptions","organizations_url":"https://api.github.com/users/m-r-c/orgs","repos_url":"https://api.github.com/users/m-r-c/repos","events_url":"https://api.github.com/users/m-r-c/events{/privacy}","received_events_url":"https://api.github.com/users/m-r-c/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-27T00:52:13Z","updated_at":"2015-12-08T03:34:21Z","closed_at":null,"body":"Record creation throws an exception when an activity is saved via MERIT.\r\n\r\nExample: https://fieldcapture-test.ala.org.au/activity/enterData/08fc16bf-db7f-4232-965d-58a238d944fe?returnTo=https://fieldcapture-test.ala.org.au/project/index/d105ad25-3447-4e70-896b-200a08ae3e71\r\n\r\nIt appears, record creation expects userId. MERIT may not be sending userId via output JSON. \r\n\r\nThis will be a blocker for MERIT as well as iPad and Android tablet release.\r\n\r\nRefer:\r\nRecordService::updateRecord(){..\r\n if (!userDetails) {\r\n                errors['updateError'] = \"Unable to lookup user with ID: ${json.userId}. Check authorised systems in auth.\"\r\n                return errors\r\n            }\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/comments/162749064","html_url":"https://github.com/AtlasOfLivingAustralia/biocollect/issues/304#issuecomment-162749064","issue_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocollect/issues/304","id":162749064,"user":{"login":"m-r-c","id":7333671,"avatar_url":"https://avatars.githubusercontent.com/u/7333671?v=3","gravatar_id":"","url":"https://api.github.com/users/m-r-c","html_url":"https://github.com/m-r-c","followers_url":"https://api.github.com/users/m-r-c/followers","following_url":"https://api.github.com/users/m-r-c/following{/other_user}","gists_url":"https://api.github.com/users/m-r-c/gists{/gist_id}","starred_url":"https://api.github.com/users/m-r-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-r-c/subscriptions","organizations_url":"https://api.github.com/users/m-r-c/orgs","repos_url":"https://api.github.com/users/m-r-c/repos","events_url":"https://api.github.com/users/m-r-c/events{/privacy}","received_events_url":"https://api.github.com/users/m-r-c/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T03:34:21Z","updated_at":"2015-12-08T03:34:21Z","body":"I have changed the code to first check for an authenticated user via the UserService, and to fall back to the manual lookup if there isn't one.\r\n\r\nhttps://upsource.ala.org.au/ecodata/review/ECODATA-CR-6"}}