[CONJS-139] createConnection(string)` does not support URL-encoded credentials Created: 2020-06-30 Updated: 2020-07-01 Resolved: 2020-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | configuration |
| Affects Version/s: | None |
| Fix Version/s: | 2.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
reported from PR-115 In a URL, user/password must be URL-encoded if they contain special characters. So if we use a connection string to open a connection, the user/password must be URL-decoded otherwise an error occurs:
See: https://github.com/mariadb-corporation/mariadb-connector-nodejs/blob/master/lib/config/connection-options.js#L210 |
| Comments |
| Comment by Diego Dupin [ 2020-07-01 ] |
|
corrected with https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/1fd343a00580b0df45f071ea6377b82b8b0a1be3 |