{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/740","labels_url":"https://api.github.com/repos/meanjs/mean/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/740/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/740/events","html_url":"https://github.com/meanjs/mean/issues/740","id":98366661,"number":740,"title":"Server error on profile image upload","user":{"login":"joops","id":4944690,"avatar_url":"https://avatars.githubusercontent.com/u/4944690?v=3","gravatar_id":"","url":"https://api.github.com/users/joops","html_url":"https://github.com/joops","followers_url":"https://api.github.com/users/joops/followers","following_url":"https://api.github.com/users/joops/following{/other_user}","gists_url":"https://api.github.com/users/joops/gists{/gist_id}","starred_url":"https://api.github.com/users/joops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joops/subscriptions","organizations_url":"https://api.github.com/users/joops/orgs","repos_url":"https://api.github.com/users/joops/repos","events_url":"https://api.github.com/users/joops/events{/privacy}","received_events_url":"https://api.github.com/users/joops/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/2","html_url":"https://github.com/meanjs/mean/milestones/0.4.0","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/2/labels","id":638272,"number":2,"title":"0.4.0","description":"","creator":{"login":"roieki","id":277629,"avatar_url":"https://avatars.githubusercontent.com/u/277629?v=3","gravatar_id":"","url":"https://api.github.com/users/roieki","html_url":"https://github.com/roieki","followers_url":"https://api.github.com/users/roieki/followers","following_url":"https://api.github.com/users/roieki/following{/other_user}","gists_url":"https://api.github.com/users/roieki/gists{/gist_id}","starred_url":"https://api.github.com/users/roieki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roieki/subscriptions","organizations_url":"https://api.github.com/users/roieki/orgs","repos_url":"https://api.github.com/users/roieki/repos","events_url":"https://api.github.com/users/roieki/events{/privacy}","received_events_url":"https://api.github.com/users/roieki/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":107,"state":"open","created_at":"2014-04-23T17:12:19Z","updated_at":"2015-07-31T17:35:17Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-31T10:52:33Z","updated_at":"2015-07-31T17:35:17Z","closed_at":"2015-07-31T17:35:17Z","body":"I'm seeing a mongoose error when calling api/users/picture from the client side with the latest version of 0.4.0. This occurs when hitting the upload button from change-profile-picture.client.view upload view.\r\n\r\nIt looks like the call is passing a value of 'picture' from the url path to the userByID middleware, which is being interpreted as 'id', thereby causing a cast error. I've confirmed this as the problem - remove the middleware and the image uploads as expected.\r\n\r\nDoes anybody else see this behaviour? I'm trying to find a fix and will post back if I come up with anything."},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/126763944","html_url":"https://github.com/meanjs/mean/issues/740#issuecomment-126763944","issue_url":"https://api.github.com/repos/meanjs/mean/issues/740","id":126763944,"user":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T17:35:17Z","updated_at":"2015-07-31T17:35:17Z","body":"thanks @codydaig "}}