-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing a non-existing user leads to server return "Insufficient auth" #5129
Comments
If I am not mistaken, _User is a special class that requires the response to be a bit tweaked. On the other hand, if the request is using the master key then I guess and "object not found" error would be more appropriate. With a quick look i found the origin of your issue, its around here Line 253 in 318a784
Specifically when this fails Line 90 in 318a784
so i guess an additional check for masterKey would go in " what do you think @flovilmart ? |
That could be changed indeed, but not really a bug either. If of you want to fix it, feel free to open a PR. |
Yes, it's not a bug but the error message could be more appropriate. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Issue Description
Server returns "Insufficient auth" error for removing a non-existing user, even we use the master key for this request.
Steps to reproduce
Parse.User.createWithoutData()
, with master key providedExpected Results
Server reports either ok or "user not found" with an appropriate error code
Actual Outcome
Server reports
{"code":206,"error":"Insufficient auth."}
Environment Setup
Server
Database
Logs/Trace
The text was updated successfully, but these errors were encountered: