
URI path handling in do_jdbc/.../AbstractDriverDefinition
Reported by Peter Brant | September 20th, 2009 @ 03:29 PM
java.net.URI wants a URI's path to start with a '/'. When configuring a repository with a hash, parseURIConnection() dies with
Malformed URI: java.net.URISyntaxException: Relative path in absolute URI: postgresql://user:pass@localhost:5432dbname?encoding=utf8
Patch attached.
Comments and changes to this ticket
-
Dan Kubb (dkubb) September 21st, 2009 @ 12:37 AM
- State changed from new to unconfirmed
- Assigned user set to Alex Coles
-
Dan Kubb (dkubb) September 22nd, 2009 @ 01:20 PM
- State changed from unconfirmed to resolved
(from [64c24dd7c933f2d465807920ce700fba658f530d]) [do_jdbc] Fix path handling when connecting with a URI
- Normalize the path element when building a java.net.URI: the path element should begin with a '/' character to ensure that the JDBC URL created internally, and passed to java.sql.DriverManager#getConnection, is correctly formatted.
[#1052 state:resolved]
Signed-off-by: Alex Coles alex@alexcolesportfolio.com
http://github.com/datamapper/do/commit/64c24dd7c933f2d465807920ce70... -
Dan Kubb (dkubb) September 22nd, 2009 @ 01:29 PM
(from [2d7b1ae7b5bf37085a10a1bfb497841148513a6e]) [do_jdbc] Fix path handling when connecting with a URI
- Normalize the path element when building a java.net.URI: the path element should begin with a '/' character to ensure that the JDBC URL created internally, and passed to java.sql.DriverManager#getConnection, is correctly formatted.
[#1052 state:resolved]
Signed-off-by: Alex Coles alex@alexcolesportfolio.com
http://github.com/datamapper/do/commit/2d7b1ae7b5bf37085a10a1bfb497...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Attachments
Referenced by
-
1052 URI path handling in do_jdbc/.../AbstractDriverDefinition [#1052 state:resolved]
-
1052 URI path handling in do_jdbc/.../AbstractDriverDefinition [#1052 state:resolved]