{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/4860","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/4860/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/4860/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/4860/events","html_url":"https://github.com/Automattic/mongoose/issues/4860","id":198434196,"number":4860,"title":"bugs during update from 4.7.2 to 4.7.3","user":{"login":"worotyns","id":15673167,"avatar_url":"https://avatars.githubusercontent.com/u/15673167?v=3","gravatar_id":"","url":"https://api.github.com/users/worotyns","html_url":"https://github.com/worotyns","followers_url":"https://api.github.com/users/worotyns/followers","following_url":"https://api.github.com/users/worotyns/following{/other_user}","gists_url":"https://api.github.com/users/worotyns/gists{/gist_id}","starred_url":"https://api.github.com/users/worotyns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worotyns/subscriptions","organizations_url":"https://api.github.com/users/worotyns/orgs","repos_url":"https://api.github.com/users/worotyns/repos","events_url":"https://api.github.com/users/worotyns/events{/privacy}","received_events_url":"https://api.github.com/users/worotyns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-01-03T09:15:50Z","updated_at":"2017-01-05T23:33:47Z","closed_at":null,"body":"Hello,\r\n\r\nYesterday after update the mongoose to 4.7.3 i hava some trouble with \"all\" tests in my application\r\nAll tests returns me: Validation Errors, and Cast errors, TypeError: Cannot read property 'remove' of undefined;\r\n\r\nSample error:\r\n```\r\n CastError: Cast to ObjectId failed for value \"586b672be11a4670c4eb3f66\" at path \"_id\" for model \"User\"\r\n      at MongooseError.CastError (/common/node_modules/mongoose/lib/error/cast.js:26:11)\r\n      at ObjectId.cast (/common/node_modules/mongoose/lib/schema/objectid.js:147:13)\r\n      at ObjectId.castForQuery (/common/node_modules/mongoose/lib/schema/objectid.js:187:15)\r\n      at cast (/common/node_modules/mongoose/lib/cast.js:229:32)\r\n      at Query.cast (/common/node_modules/mongoose/lib/query.js:2752:12)\r\n      at Query.findOne (/common/node_modules/mongoose/lib/query.js:1353:10)\r\n      at /common/node_modules/mongoose/lib/query.js:2310:21\r\n      at Query.exec (/common/node_modules/mongoose/lib/query.js:2304:17)\r\n      at Query.then (/common/node_modules/mongoose/lib/query.js:2351:15)\r\n      at next (/common/node_modules/co/index.js:100:51)\r\n      at onFulfilled (/common/node_modules/co/index.js:69:7)\r\n      at /common/node_modules/co/index.js:54:5\r\n      at co (/common/node_modules/co/index.js:50:10)\r\n      at Test.<anonymous> (src/routes/me.spec.js:169:11)\r\n      at Test.assert (/common/node_modules/supertest/lib/test.js:156:6)\r\n      at Server.assert (/common/node_modules/supertest/lib/test.js:127:12)\r\n      at emitCloseNT (net.js:1537:8)\r\n\r\n```\r\n\r\nLet me know what more informations you know."},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/270789395","html_url":"https://github.com/Automattic/mongoose/issues/4860#issuecomment-270789395","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/4860","id":270789395,"user":{"login":"jrfoxw","id":13408697,"avatar_url":"https://avatars.githubusercontent.com/u/13408697?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfoxw","html_url":"https://github.com/jrfoxw","followers_url":"https://api.github.com/users/jrfoxw/followers","following_url":"https://api.github.com/users/jrfoxw/following{/other_user}","gists_url":"https://api.github.com/users/jrfoxw/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfoxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfoxw/subscriptions","organizations_url":"https://api.github.com/users/jrfoxw/orgs","repos_url":"https://api.github.com/users/jrfoxw/repos","events_url":"https://api.github.com/users/jrfoxw/events{/privacy}","received_events_url":"https://api.github.com/users/jrfoxw/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T23:33:47Z","updated_at":"2017-01-05T23:33:47Z","body":"same issue doesn't recognize valid _id's\r\n"}}
{"actor":{"display_login":"jrfoxw"}}