{"action":"created","issue":{"url":"https://api.github.com/repos/18F/federalist/issues/158","labels_url":"https://api.github.com/repos/18F/federalist/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/18F/federalist/issues/158/comments","events_url":"https://api.github.com/repos/18F/federalist/issues/158/events","html_url":"https://github.com/18F/federalist/pull/158","id":106124424,"number":158,"title":"Fix missing path error in session policy","user":{"login":"dhcole","id":170641,"avatar_url":"https://avatars.githubusercontent.com/u/170641?v=3","gravatar_id":"","url":"https://api.github.com/users/dhcole","html_url":"https://github.com/dhcole","followers_url":"https://api.github.com/users/dhcole/followers","following_url":"https://api.github.com/users/dhcole/following{/other_user}","gists_url":"https://api.github.com/users/dhcole/gists{/gist_id}","starred_url":"https://api.github.com/users/dhcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhcole/subscriptions","organizations_url":"https://api.github.com/users/dhcole/orgs","repos_url":"https://api.github.com/users/dhcole/repos","events_url":"https://api.github.com/users/dhcole/events{/privacy}","received_events_url":"https://api.github.com/users/dhcole/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/18F/federalist/labels/ready%20for%20review","name":"ready for review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-12T02:58:39Z","updated_at":"2015-09-14T16:40:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/18F/federalist/pulls/158","html_url":"https://github.com/18F/federalist/pull/158","diff_url":"https://github.com/18F/federalist/pull/158.diff","patch_url":"https://github.com/18F/federalist/pull/158.patch"},"body":"Fixes an error found in the logs:\r\n\r\n```\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR Sending 500 (\"Server Error\") response: \r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR  TypeError: Cannot read property 'indexOf' of undefined\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at module.exports (/home/vcap/app/api/policies/sessionAuth.js:18:15)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at routeTargetFnWrapper (/home/vcap/app/node_modules/sails/lib/router/bind.js:179:5)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at callbacks (/home/vcap/app/node_modules/sails/node_modules/express/lib/router/index.js:164:37)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at param (/home/vcap/app/node_modules/sails/node_modules/express/lib/router/index.js:138:11)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at pass (/home/vcap/app/node_modules/sails/node_modules/express/lib/router/index.js:145:5)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at nextRoute (/home/vcap/app/node_modules/sails/node_modules/express/lib/router/index.js:100:7)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at callbacks (/home/vcap/app/node_modules/sails/node_modules/express/lib/router/index.js:167:11)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at /home/vcap/app/node_modules/sails/lib/router/bind.js:187:7\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at /home/vcap/app/api/policies/passport.js:32:7\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at SessionStrategy.strategy.pass (/home/vcap/app/node_modules/passport/lib/middleware/authenticate.js:318:9)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at SessionStrategy.authenticate (/home/vcap/app/node_modules/passport/lib/strategies/session.js:67:10)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at attempt (/home/vcap/app/node_modules/passport/lib/middleware/authenticate.js:341:16)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at authenticate (/home/vcap/app/node_modules/passport/lib/middleware/authenticate.js:342:7)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at /home/vcap/app/api/policies/passport.js:28:23\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at initialize (/home/vcap/app/node_modules/passport/lib/middleware/initialize.js:62:5)\r\n2015-09-11T22:55:35.73-0400 [App/0]      ERR     at module.exports (/home/vcap/app/api/policies/passport.js:26:24) [TypeError: Cannot read property 'indexOf' of undefined]\r\n```"},"comment":{"url":"https://api.github.com/repos/18F/federalist/issues/comments/140139346","html_url":"https://github.com/18F/federalist/pull/158#issuecomment-140139346","issue_url":"https://api.github.com/repos/18F/federalist/issues/158","id":140139346,"user":{"login":"jeremiak","id":780941,"avatar_url":"https://avatars.githubusercontent.com/u/780941?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremiak","html_url":"https://github.com/jeremiak","followers_url":"https://api.github.com/users/jeremiak/followers","following_url":"https://api.github.com/users/jeremiak/following{/other_user}","gists_url":"https://api.github.com/users/jeremiak/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremiak/subscriptions","organizations_url":"https://api.github.com/users/jeremiak/orgs","repos_url":"https://api.github.com/users/jeremiak/repos","events_url":"https://api.github.com/users/jeremiak/events{/privacy}","received_events_url":"https://api.github.com/users/jeremiak/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T16:40:36Z","updated_at":"2015-09-14T16:40:36Z","body":":+1: "}}