-
-
Notifications
You must be signed in to change notification settings - Fork 600
Open
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
When saving a user from the SDK, if an attribute points back to the user, stringify will fail with a RangeError: Invalid string length
Steps to reproduce
- Register a subclass on
Parse.ObjectcalledStorewith a field that points to theUserclass e.g.manager - Extend the
Userclass to have astorefield that points toStore - Create some users
- Create a
Storewith itsmanagerfield pointing to aUser - Attempt to save a
Userwith itsstorefield pointing to that store - Observe the error
Actual Outcome
Uncaught exception thrown trying to save user
Expected Outcome
Circular pointer serializes automatically
Environment
Server
- Parse Server version:
8.2.0 - Operating system: alpine linux in docker (
node:18-alpine3.21) - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Google Cloud
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
7.0.22 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Client
- Parse JS SDK version:
6.1.1
Logs
Metadata
Metadata
Assignees
Labels
No labels