Skip to content

[BUG] Special characters in the password break psql command #769

@b-a-t

Description

@b-a-t

Tag/version of Container Images
0.5.3

We do use a password generator to make database passwords. This time password had a % sign inside it.

Container initialisation started to fail with the:

psql: error: invalid percent-encoded token: "AmJawatHen%queifJof5"
Postgres is unavailable - sleeping
psql: error: invalid percent-encoded token: "AmJawatHen%queifJof5"
Postgres is unavailable - sleeping
psql: error: invalid percent-encoded token: "AmJawatHen%queifJof5"
Postgres is unavailable - sleeping
psql: error: invalid percent-encoded token: "AmJawatHen%queifJof5"
Postgres is unavailable - sleeping

The same message was both mailman-core and mailman-web containers, so it looks like in the wait_for_postgres function.

I'm not sure what would be the best fix here, except, maybe, a special note in the documentation that % sign has to be escaped, if present in the password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions