Skip to content

Oracle uri parser requires a port in the Uri #1151

@DavideD

Description

@DavideD

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions