{"action":"created","issue":{"url":"https://api.github.com/repos/ushahidi/platform/issues/3254","repository_url":"https://api.github.com/repos/ushahidi/platform","labels_url":"https://api.github.com/repos/ushahidi/platform/issues/3254/labels{/name}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/3254/comments","events_url":"https://api.github.com/repos/ushahidi/platform/issues/3254/events","html_url":"https://github.com/ushahidi/platform/issues/3254","id":355656611,"node_id":"MDU6SXNzdWUzNTU2NTY2MTE=","number":3254,"title":"Unable to Post Responses if user is logged in","user":{"login":"Eve-wanderi","id":36038029,"node_id":"MDQ6VXNlcjM2MDM4MDI5","avatar_url":"https://avatars1.githubusercontent.com/u/36038029?v=4","gravatar_id":"","url":"https://api.github.com/users/Eve-wanderi","html_url":"https://github.com/Eve-wanderi","followers_url":"https://api.github.com/users/Eve-wanderi/followers","following_url":"https://api.github.com/users/Eve-wanderi/following{/other_user}","gists_url":"https://api.github.com/users/Eve-wanderi/gists{/gist_id}","starred_url":"https://api.github.com/users/Eve-wanderi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eve-wanderi/subscriptions","organizations_url":"https://api.github.com/users/Eve-wanderi/orgs","repos_url":"https://api.github.com/users/Eve-wanderi/repos","events_url":"https://api.github.com/users/Eve-wanderi/events{/privacy}","received_events_url":"https://api.github.com/users/Eve-wanderi/received_events","type":"User","site_admin":false},"labels":[{"id":15889808,"node_id":"MDU6TGFiZWwxNTg4OTgwOA==","url":"https://api.github.com/repos/ushahidi/platform/labels/Bug","name":"Bug","color":"444444","default":false},{"id":568525547,"node_id":"MDU6TGFiZWw1Njg1MjU1NDc=","url":"https://api.github.com/repos/ushahidi/platform/labels/Mobile","name":"Mobile","color":"bfdadc","default":false},{"id":970610297,"node_id":"MDU6TGFiZWw5NzA2MTAyOTc=","url":"https://api.github.com/repos/ushahidi/platform/labels/P0%20-%20Urgent","name":"P0 - Urgent","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"rowasc","id":2434401,"node_id":"MDQ6VXNlcjI0MzQ0MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2434401?v=4","gravatar_id":"","url":"https://api.github.com/users/rowasc","html_url":"https://github.com/rowasc","followers_url":"https://api.github.com/users/rowasc/followers","following_url":"https://api.github.com/users/rowasc/following{/other_user}","gists_url":"https://api.github.com/users/rowasc/gists{/gist_id}","starred_url":"https://api.github.com/users/rowasc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowasc/subscriptions","organizations_url":"https://api.github.com/users/rowasc/orgs","repos_url":"https://api.github.com/users/rowasc/repos","events_url":"https://api.github.com/users/rowasc/events{/privacy}","received_events_url":"https://api.github.com/users/rowasc/received_events","type":"User","site_admin":false},"assignees":[{"login":"rowasc","id":2434401,"node_id":"MDQ6VXNlcjI0MzQ0MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2434401?v=4","gravatar_id":"","url":"https://api.github.com/users/rowasc","html_url":"https://github.com/rowasc","followers_url":"https://api.github.com/users/rowasc/followers","following_url":"https://api.github.com/users/rowasc/following{/other_user}","gists_url":"https://api.github.com/users/rowasc/gists{/gist_id}","starred_url":"https://api.github.com/users/rowasc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowasc/subscriptions","organizations_url":"https://api.github.com/users/rowasc/orgs","repos_url":"https://api.github.com/users/rowasc/repos","events_url":"https://api.github.com/users/rowasc/events{/privacy}","received_events_url":"https://api.github.com/users/rowasc/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ushahidi/platform/milestones/54","html_url":"https://github.com/ushahidi/platform/milestone/54","labels_url":"https://api.github.com/repos/ushahidi/platform/milestones/54/labels","id":3422490,"node_id":"MDk6TWlsZXN0b25lMzQyMjQ5MA==","number":54,"title":"Cycle 9","description":"","creator":{"login":"jrtricafort","id":37776843,"node_id":"MDQ6VXNlcjM3Nzc2ODQz","avatar_url":"https://avatars1.githubusercontent.com/u/37776843?v=4","gravatar_id":"","url":"https://api.github.com/users/jrtricafort","html_url":"https://github.com/jrtricafort","followers_url":"https://api.github.com/users/jrtricafort/followers","following_url":"https://api.github.com/users/jrtricafort/following{/other_user}","gists_url":"https://api.github.com/users/jrtricafort/gists{/gist_id}","starred_url":"https://api.github.com/users/jrtricafort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrtricafort/subscriptions","organizations_url":"https://api.github.com/users/jrtricafort/orgs","repos_url":"https://api.github.com/users/jrtricafort/repos","events_url":"https://api.github.com/users/jrtricafort/events{/privacy}","received_events_url":"https://api.github.com/users/jrtricafort/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":5,"state":"open","created_at":"2018-06-13T16:40:42Z","updated_at":"2018-08-30T18:37:05Z","due_on":"2018-09-10T07:00:00Z","closed_at":null},"comments":4,"created_at":"2018-08-30T16:13:13Z","updated_at":"2018-08-30T23:08:57Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nIf a user is logged IN i cannot post any responses i get an error \"There was a problem posting your response\".\r\n\r\n**Where was the bug observed**\r\nMobile App (https://rominacsvsms.ushahidi.io)\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Go to 'https://rominacsvsms.ushahidi.io' mobile App.\r\n2. Log in as 'Admin' (Please note if certain user permissions, like Admin or Manage Data, are required to reproduce this bug. Also include if there is a support@ or admin@ account for this deployment. If not, contact the platform slack channel with further instructions.)\r\n3. Click on ' Submit Survey Response'\r\n4. Scroll down to 'Basic Post.'\r\n5. Fill in all details\r\n\r\n**Expected behavior**\r\nUser should get a notification \"Post submitted successfully\"\r\n\r\n**Is there a workaround? What is it.**\r\nFor android phones No.\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n![screenshot_20180830-182746_ushahidi](https://user-images.githubusercontent.com/36038029/44864427-4a7c7400-ac88-11e8-8401-27ff62aa0037.jpg)\r\n![screenshot_20180830-185738_ushahidi](https://user-images.githubusercontent.com/36038029/44864428-4b150a80-ac88-11e8-8419-e0985bc8eca7.jpg)\r\n\r\n\r\n**URL / Environment where this happened**\r\n[https://rominacsvsms.ushahidi.io]\r\n\r\n**If the bug is datasource related (e.g. SMS or Targeted SMS), please specify the configuration details (e.g. Frontline + Clickatell, etc):**\r\n\r\n\r\n**Desktop Hardware Details (please complete the following information):**\r\n - OS: [e.g. iOS]\r\n - Browser [e.g. chrome, safari]\r\n - Version [e.g. 22]\r\n\r\n**Smartphone Hardware Details (please complete the following information):**\r\n - Device: [Samsung S8+]\r\n - OS: [Android]\r\n - Version [Version 8.0.0]\r\n\r\n![screenshot_20180830-194457_settings](https://user-images.githubusercontent.com/36038029/44866399-cb8a3a00-ac8d-11e8-91de-c1402756787c.jpg)\r\n\r\n\r\n**Additional context**\r\nThis functionality however works in IOS and another Android version i.e 4 .\r\n\r\nSee video below\r\n[20180830_191729_gif.zip](https://github.com/ushahidi/platform/files/2337037/20180830_191729_gif.zip)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ushahidi/platform/issues/comments/417496315","html_url":"https://github.com/ushahidi/platform/issues/3254#issuecomment-417496315","issue_url":"https://api.github.com/repos/ushahidi/platform/issues/3254","id":417496315,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzQ5NjMxNQ==","user":{"login":"rjmackay","id":7965,"node_id":"MDQ6VXNlcjc5NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/7965?v=4","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T23:08:57Z","updated_at":"2018-08-30T23:08:57Z","author_association":"MEMBER","body":"I found if you decode the jwt (you can use jwt.io) then its missing the user id. ie instead of `\"sub\": \"8\"` it has `\"sub\": \"\"`. I'm wondering if its actually a client_credentials token? or the token handling isn't quite right in the mobile app now.\r\nOne thing that changed with lumen is that the oauth token payload return `expires_in` not `expires`. This changed with an update to our oauth library and matches the oauth spec, rather than what we had before. Unfortunately it's not backwards compatible :("}}
{"actor":{"display_login":"rjmackay"}}