Skip to content

Urlencode connection string not working with & #1678

@crazyhouse33

Description

@crazyhouse33

In this commit d1fce37

You add support to allow urlencode some components of connection strings but it does not work if we try to url encode two components:

into {{ TARGET_CONNECTOR }}://user:password@{{ TARGET_DB }}?user={{ TARGET_USERNAME }}&password={{ TARGET_PASSWORD }}

Result in

ESRAP-PARSE-ERROR: At end of input

;

^ (Line 7, Column 0, Position 697)

In context LOAD-PGSQL-COMMAND:

While parsing KW-INTO. Expected:

 the character Tab

or the character Newline
or the character Return
or the character Space
or the string "--"
or the string "/*"
or the string "into"

While parsing ANOTHER-DSN-OPTION. Expected:

 the character & (AMPERSAND)

While parsing URI-PARAM. Expected:

 <end of input>

or anything but the character & (AMPERSAND)
An unhandled error condition has been signalled: At end of input

;

^ (Line 7, Column 0, Position 697)

In context LOAD-PGSQL-COMMAND:

While parsing KW-INTO. Expected:

 the character Tab

or the character Newline
or the character Return
or the character Space
or the string "--"
or the string "/*"
or the string "into"

While parsing ANOTHER-DSN-OPTION. Expected:

 the character & (AMPERSAND)

While parsing URI-PARAM. Expected:

 <end of input>

or anything but the character & (AMPERSAND)

What I am doing here?

At end of input

;

^ (Line 7, Column 0, Position 697)

In context LOAD-PGSQL-COMMAND:

While parsing KW-INTO. Expected:

 the character Tab

or the character Newline
or the character Return
or the character Space
or the string "--"
or the string "/*"
or the string "into"

While parsing ANOTHER-DSN-OPTION. Expected:

 the character & (AMPERSAND)

While parsing URI-PARAM. Expected:

 <end of input>

or anything but the character & (AMPERSAND)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions