[CONJ-567] UrlParser.initialUrl gets overwritten Created: 2018-01-04 Updated: 2018-02-20 Resolved: 2018-01-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | configuration |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | 2.2.2, 1.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roman Trapickin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In our project we are using Connection.getMetadata().getURL() to retrieve the initial JDBC URL, e.g. jdbc:mysql://localhost:3306/etc. Starting with version 2.2.1 the behavior has changed. The URL is set once again, and, despite its name, it's not the initial URL anymore. What we get is apparently a normalized URL, e.g. jdbc:mariadb://address=(host=localhost)(port=3306)(type=master)/etc.
However, we still need the actual initial URL, not the "normalized" one. So, the question is, whether it's the expected behavior, and if yes, how do I retrieve the initial URL using the JDBC API? |
| Comments |
| Comment by Bogdan S [ 2018-01-12 ] | |||||||||||||||
|
PlayFramework also uses
Commit that broke the initial url: | |||||||||||||||
| Comment by Diego Dupin [ 2018-01-22 ] | |||||||||||||||
|
corrected developpement version:
will be released in next corrective release | |||||||||||||||
| Comment by Roman Trapickin [ 2018-01-24 ] | |||||||||||||||
|
Great, thank you! |