Closed
Description
New Issue Checklist
- [x ] I am not disclosing a vulnerability.
- [x ] I am not just asking a question.
- [x ] I have searched through existing issues.
- [x ] I can reproduce the issue with the latest version of Parse Server.
Issue Description
Developers using PostgreSQL can only use a URI with the prefix "postgres:" when "postgresql:" is also commonly used.
Steps to reproduce
- Set env var PARSE_SERVER_DATABASE_URI to a URI string starting with "postgresql://..."
- There will be a "MongoParseError" as it fallsback to MongoDB.
Actual Outcome
"MongoParseError: Invalid connection string"
Expected Outcome
Should validate as a PostgreSQL URI.
Environment
Node v17.0.1
Server
- Parse Server version: 5.0.0-beta.1
- Operating system: macOS 12.0.1
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local
Database
- System (MongoDB or Postgres): Postgres
- Database version: Postgres 14.0.0
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc): n/a
- SDK version: n/a