-
Notifications
You must be signed in to change notification settings - Fork 206
Description
I don't know if this qualify as a bug.
The OracleConnectionUriParser
is the only one that fails if the port is missing in the uri.
All the other parser set the default port.
You can see the difference between the regex for OracleConnectionUriParser and PgConnectionUriParser.
Example of url without port:
oracle:thin:@localhost:database
Causes java.lang.IllegalArgumentException: Cannot parse invalid connection URI: oracle:thin:@localhost:orcl
For comparison, Postgres set the right default port when the url is postgresql://localhost/database
By the way, something similar happens for the credentials, oracle credentials are like username/password@
but for all other databases it's username:password@
.
This is not a big deal, but keeping everything consistent makes it easier to work with different databases.