{"action":"closed","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2903","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2903/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2903/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2903/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/2903","id":184464069,"number":2903,"title":"Push badge update to multiple object ids does not work","user":{"login":"crazyscorpio12","id":73951,"avatar_url":"https://avatars.githubusercontent.com/u/73951?v=3","gravatar_id":"","url":"https://api.github.com/users/crazyscorpio12","html_url":"https://github.com/crazyscorpio12","followers_url":"https://api.github.com/users/crazyscorpio12/followers","following_url":"https://api.github.com/users/crazyscorpio12/following{/other_user}","gists_url":"https://api.github.com/users/crazyscorpio12/gists{/gist_id}","starred_url":"https://api.github.com/users/crazyscorpio12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazyscorpio12/subscriptions","organizations_url":"https://api.github.com/users/crazyscorpio12/orgs","repos_url":"https://api.github.com/users/crazyscorpio12/repos","events_url":"https://api.github.com/users/crazyscorpio12/events{/privacy}","received_events_url":"https://api.github.com/users/crazyscorpio12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-21T11:32:18Z","updated_at":"2016-11-28T18:11:54Z","closed_at":"2016-11-28T18:11:54Z","body":"Please read the following instructions carefully.\n\nCheck out https://github.com/ParsePlatform/parse-server/issues/1271 for an ideal bug report. \nThe closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!\n\nMany members of the community use Stack Overflow and Server Fault to ask questions. \nRead through the existing questions or ask your own!\n- Stack Overflow: http://stackoverflow.com/questions/tagged/parse.com \n- Server Fault: https://serverfault.com/tags/parse\n\nFor database migration help, please file a bug report at https://parse.com/help#report\n\nMake sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!\n- [x] You've met the prerequisites: https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites.\n- [x] You're running the latest version of Parse Server: https://github.com/ParsePlatform/parse-server/releases\n- [x] You've searched through existing issues: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue Chances are that your issue has been reported or resolved before.\n- [x] You have filled out every section below. Issues without sufficient information are more likely to be closed.\n## \n### Issue Description\n\nSending a badge update to selected object ids for ios does not work using parse v2.2.23\n\nThe following request works and the badge update is sent.\n\n```\nvariable declarations:\nurl = 'https://ourdomain.com/parse/push'\nparse_headers={\n     'X-Parse-REST-API-Key': 'OUR_API_KEY', \n     'X-Parse-Application-Id': 'OUR_APP_ID', \n     'X-Parse-Master-Key': 'OUR_MASTER_KEY',\n     'content-type': 'application/json'\n}\n\nresponse = requests.post(\n     url, \n     headers=parse_headers, \n     data='{\"data\":{\"badge\":\"Increment\"}, \"where\": {\"deviceType\": \"ios\", \"objectId\": \"SOMEOBJECTID\"}}'\n)\n```\n\n**but, this (adding the '$in' condition) does not work:**\n\n```\nresponse = requests.post(\n     url,\n     headers=parse_headers,\n     data='{\"data\":{\"badge\":\"Increment\"}, \"where\": {\"deviceType\": \"ios\", \"objectId\": {\"$in\": [\"SOMEOBJECTID\", \"SOMEOTHEROBJECTID\"]}}}'\n)\n```\n\nparse logs show the following error\n\n```\ninfo: warning: error while sending push code=101, message=Object not found for update.\n```\n\nAnd If I use hosted parse.com API instead of our own hosted parse, the above request works without any issue.\n#### Expected Results\n\n```\nresponse.content = '{\"result\":true}'\n```\n\nBadge update should be sent\nParse dashboard shows status as success\n#### Actual Outcome\n\n```\nresponse.content = '{\"result\":true}'\n```\n\nBadge update is not sent.\nParse dashboard shows status as failed\n### Environment Setup\n- **Server**\n  - parse-server version (Be specific! Don't say 'latest'.) : v2.2.23\n  - Operating System:     ubuntu\n  - Hardware:             AWS EC2 small instance\n  - Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS\n- **Database**\n  - MongoDB version: 3.0\n  - Storage engine:  [FILL THIS OUT]\n  - Hardware:        [FILL THIS OUT]\n  - Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): compose\n### Logs/Trace\n\n```\nverbose: REQUEST for [POST] /parse/push: {\n   \"data\": {\n     \"badge\": \"Increment\"\n   },\n   \"where\": {\n     \"objectId\": {\n       \"$in\": [\n         \"REMOVED\"\n       ]\n     },\n     \"deviceType\": \"ios\"\n   }\n } method=POST, url=/parse/push, host=127.0.0.1:1337, connection=close, content-length=101, x-parse-application-id=REMOVED, accept=*/*, content-type=application/json, user-agent=python-requests/2.7.0 CPython/2.7.10 Linux/3.13.0-100-generic, x-parse-rest-api-key=REMOVED, x-parse-master-key=REMOVED, accept-encoding=gzip, deflate, badge=Increment, $in=[REMOVED], deviceType=ios\n verbose: RESPONSE from [POST] /parse/push: {\n   \"headers\": {\n     \"X-Parse-Push-Status-Id\": \"REMOVED\"\n   },\n   \"response\": {\n     \"result\": true\n   }\n } X-Parse-Push-Status-Id=REMOVED, result=true\n info: warning: error while sending push code=101, message=Object not found for update.\n```\n"}}
{"actor":{"display_login":"flovilmart"}}