Skip to content

Database connection string with postgresql protocol assumes MongoDB #7687

Closed
@pmmlo

Description

@pmmlo

New Issue Checklist

Issue Description

Developers using PostgreSQL can only use a URI with the prefix "postgres:" when "postgresql:" is also commonly used.

Steps to reproduce

  1. Set env var PARSE_SERVER_DATABASE_URI to a URI string starting with "postgresql://..."
  2. 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

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta 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