Skip to content
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

Do not support fieldName 'length' on Mongo 4.X #1277

Closed
4 tasks done
Moumouls opened this issue Dec 11, 2020 · 1 comment
Closed
4 tasks done

Do not support fieldName 'length' on Mongo 4.X #1277

Moumouls opened this issue Dec 11, 2020 · 1 comment

Comments

@Moumouls
Copy link
Member

Moumouls commented Dec 11, 2020

New Issue Checklist

Issue Description

Issue name

Steps to reproduce

Run Parse SDK JS integration test with a mongo version 4.X

Actual Outcome

Cannot save object with a field "length"

Expected Outcome

Can save the object

Environment

Server

  • Parse Server version: master
  • Operating system: macOS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 4.X
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • Parse JS SDK version: master

Logs

Failures:
1) Parse LocalDatastore Parse Query Pinning (Default) Default supports objects with length
  Message:
    Error: Invalid field name: length.
  Stack:
    error properties: Object({ code: 105 })
    Error: Invalid field name: length.
        at handleError (/Users/antoinecormouls/Desktop/OpenSource/Parse-SDK-JS/lib/node/RESTController.js:422:17)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

2) Parse LocalDatastore Parse Query Pinning (React-Native) React-Native supports objects with length
  Message:
    Error: Invalid field name: length.
  Stack:
    error properties: Object({ code: 105 })
    Error: Invalid field name: length.
        at handleError (/Users/antoinecormouls/Desktop/OpenSource/Parse-SDK-JS/lib/node/RESTController.js:422:17)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

3) Parse Query supports objects with length
  Message:
    Unhandled promise rejection: ParseError: 105 Invalid field name: length.
  Stack:
    error properties: Object({ code: 105 })
    Error: Invalid field name: length.
        at handleError (/Users/antoinecormouls/Desktop/OpenSource/Parse-SDK-JS/lib/node/RESTController.js:422:17)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
@dplewis
Copy link
Member

dplewis commented Dec 11, 2020

This is expected behavior.

parse-community/parse-server#7053

I can open a PR to fix the tests since the server hasn’t been released yet.

@dplewis dplewis closed this as completed Dec 11, 2020
@dplewis dplewis mentioned this issue Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants