-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
Issue Description
Performing this code in the cloud gives an object not found error.
var query = new Parse.Query('classname'); query.get('hVYmCOi7M9').then(function(object) { ...
---Details----
I have a User (a7MTQFYXA9) belonging to a role (admins).
and object (hVYmCOi7M9) with ACL (r/w to admins role).
I have a cloud function (templateTest) that takes an objectId (in our test case hVYmCOi7M9) from ios SDK and retrieves this object, and returns a response of the task to be completed.
Note:
Not restricting the ACL of the object to the role and adding (public read) retrieves the object with no errors. So this may be an Role thing bug
Steps to reproduce
Please read the explanation above.
Expected Results
Object to be retrieved successfully.
Actual Outcome
Error object not found
Environment Setup
-
Server
- parse-server version 2.4.0
- Operating System: Mac
- Hardware: [FILL THIS OUT]
- Localhost or remote server? Localhost
-
Database
- MongoDB version: 3.4.3
- Storage engine: Default (GridStore)
- Hardware: [FILL THIS OUT]
- Localhost or remote server? Localhost
Logs/Trace
error: Failed running cloud function templateTest for user a7MTQFYXA9 with: Input: {"theObjectId":"hVYmCOi7M9"} Error: {"code":141,"message":{"code":101,"message":"Object not found."}}