Skip to content

Removing a non-existing user leads to server return "Insufficient auth" #5129

@reallyimeric

Description

@reallyimeric

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

  1. setup a fresh parse server
  2. remove an user with an non-existing objectId, using rest API or Parse.User.createWithoutData(), with master key provided
  3. see the server response

Expected 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

    • parse-server version (Be specific! Don't say 'latest'.) : 3.0.0
    • Operating System: linux
    • Hardware: x86_64
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • Database

    • MongoDB version: mongodb 3.6.5 WiredTiger: 3.0.1: (January 8, 2018)
    • Storage engine: wiredtiger
    • Hardware: the same with the server
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): the same with the server

Logs/Trace

error: Insufficient auth. code=206, message=Insufficient auth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions