Skip to content

Error "Tried to create an ACL with an invalid permission type." #8473

Open
@yog27ray

Description

@yog27ray

New Issue Checklist

Issue Description

I am updating the parse server from "5.2.8" to "5.4.2", and getting the below error

TypeError: Tried to create an ACL with an invalid permission type.
    at new ParseACL (/project/node_modules/parse/lib/node/ParseACL.js:70:21)
    at ParseRole._handleSaveResponse (/project/node_modules/parse/lib/node/ParseObject.js:614:25)
    at /project/node_modules/parse/lib/node/ParseObject.js:3183:22
    at processTicksAndRejections (node:internal/process/task_queues:95:5) 

Whenever I got the above error the arg1 parameter in the ParseACL.js constructor is called with the below value.

{ __op: 'Delete' }

I noticed when starting from the fresh empty database. I need to start the server multiple times to start the server as before starting the server it creates some roles. Every attempt create a few more entries in the Role table, Once all roles are created Server starts.

I also tried resetting acl in before save of Role request.object.setACL(new Parse.ACL()); but still end up with same error.

Server

  • Parse Server version: 5.4.2
  • Operating system: Ubuntu
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Docker

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.2.3
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JavaScript
  • SDK version: 3.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:released-5.x.xReleased as LTS versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions