GoogleCloudPlatform / GoogleCloudPlatform/spanner-migration-tool

Web UI fails to parse password with "\"

Open
#1,311 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PLpgSQL
Stars
155
Forks
83
Avg merge
3d 7h
Merged PRs (30d)
6

Description

(tested with postgres instance)

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

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

```json
{
"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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.