Skip to content

Hint with invalid index returns internal server error #8288

Open
@dblythy

Description

@dblythy

New Issue Checklist

Issue Description

When using hint, if an index that does not exist is specified, Internal server error is thrown.

Steps to reproduce

new Parse.Query('Test').hint('a').find()

Actual Outcome

Throws internal server error

Expected Outcome

Should return invalid hint

Environment

Server

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

Database

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

Client

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

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)type: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