Skip to content

Parsing error if double quote (") character is present in postgreSQL user password #14

Description

@nicolas-juteau

ChirpStack FUOTA server will fail to start if double quote (") character is present in postgreSQL user password.

Dec 11 18:00:25 dev-chirpstack chirpstack-fuota-server[76143]: time="2023-12-11T18:00:25Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="parse "postgres://user:XXXXXX*{\"NY+": invalid port ":XXXXXX*{\"NY+" after host"

Escaping the double quote using a \ does not help. Using englobing single quote and leave the double quote character unescaped does not work either.

NOTE: this issue does not occur in chirpstack (latest version). We use the same escaped password and the connection to postgresql database establishes correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions