{"action":"opened","issue":{"url":"https://api.github.com/repos/Polyjuice/Polyjuice/issues/24","labels_url":"https://api.github.com/repos/Polyjuice/Polyjuice/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Polyjuice/Polyjuice/issues/24/comments","events_url":"https://api.github.com/repos/Polyjuice/Polyjuice/issues/24/events","html_url":"https://github.com/Polyjuice/Polyjuice/issues/24","id":65431530,"number":24,"title":"GoogleSignIn gets incorrect patch response from the server","user":{"login":"warpech","id":566463,"avatar_url":"https://avatars.githubusercontent.com/u/566463?v=3","gravatar_id":"","url":"https://api.github.com/users/warpech","html_url":"https://github.com/warpech","followers_url":"https://api.github.com/users/warpech/followers","following_url":"https://api.github.com/users/warpech/following{/other_user}","gists_url":"https://api.github.com/users/warpech/gists{/gist_id}","starred_url":"https://api.github.com/users/warpech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpech/subscriptions","organizations_url":"https://api.github.com/users/warpech/orgs","repos_url":"https://api.github.com/users/warpech/repos","events_url":"https://api.github.com/users/warpech/events{/privacy}","received_events_url":"https://api.github.com/users/warpech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-03-31T11:34:31Z","updated_at":"2015-03-31T11:34:31Z","closed_at":null,"body":"After signing in, GoogleSignIn receives a patch response that is not a valid JSON.\r\n\r\nSteps to reproduce:\r\n1. Use current Starcounter (2.0.3108.3)\r\n2. Start current Launcher (2.0.0-pre7)\r\n3. Start current GoogleSignIn (36173a)\r\n4. Go to localhost:8080 and click on Google Sign In icon\r\n5. A popup window opens, allowing you to log in through Google\r\n6. After successful login, client sends a request to server\r\n\r\n```\r\nGET http://localhost:8080/googlesignin/signin/ya29.RwGFInMj4Qtibd8qVl6dgvMTmm9PXLNMZpmE93uvbeGGqu8QQ3VpLnB_HGlqeVqXWGfduHwvFQMXdQ\r\nAccept: application/json-patch+json\r\n```\r\n\r\nThe response contains malformed JSON:\r\n\r\n```\r\n[\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/_ver#s\",\r\n        \"value\": 1\r\n    },\r\n    {\r\n        \"op\": \"test\",\r\n        \"path\": \"/_ver#c$\",\r\n        \"value\": 0\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/IsSignedIn\",\r\n        \"value\": true\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/User/Username\",\r\n        \"value\": \"112020368479229387960\"\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/WhoIs/Name\",\r\n        \"value\": \"Marcin Warpechowski\"\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/WhoIs/ImageURL\",\r\n        \"value\": \"https://lh4.googleusercontent.com/-DiOx4A9EHYY/AAAAAAAAAAI/AAAAAAAABk8/1c8EGKVg-es/photo.jpg\"\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/GooglePerson/Link\",\r\n        \"value\": \"https://plus.google.com/+MarcinWarpechowski\"\r\n    },\r\n    {\r\n        \"op\": \"replace\",\r\n        \"path\": \"/user/GoogleSignIn/GooglePerson/Picture\",\r\n        \"value\": \"https://lh4.googleusercontent.com/-DiOx4A9EHYY/AAAAAAAAAAI/AAAAAAAABk8/1c8EGKVg-es/photo.jpg\"\r\n    },\r\n    {\r\n        \"op\": \"add\",\r\n        \"path\": \"/workspaces/0\",\r\n        \"value\": {\r\n            \"appName\": \"googlesignin\",\r\n            \"master\": {\r\n                \"Launcher\": {\r\n                    \"Html\": \"\"\r\n                },\r\n                ,\r\n                \"Html\": \"\"\r\n            },\r\n            \"Html\": \"/Launcher/LauncherTemplate.html\"\r\n        }\r\n    }\r\n]\r\n```\r\n\r\nError:\r\n\r\n```\r\nParse error on line 50:\r\n... },                ,                \"H\r\n----------------------^\r\nExpecting 'STRING'\r\n```"}}