Skip to content

Web UI fails to parse password with "\" #1311

Description

@nielm

(tested with postgres instance)

If the postgres user password contains a "" the login fails.

Looking at the JSON payload, the "" is escaped correctly:

{
    "Driver": "postgres",
    "IsSharded": false,
    "Host": "x.x.x.x",
    "Port": "5432",
    "Database": "pgbench",
    "User": "postgres",
    "Password": "XXX\\XXXXX",
    "Dialect": "postgresql",
    "DataCenter": ""
}

I guess that it is either decoded incorrectly or re-encoded incorrectly when sent to Postgres.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions