Skip to content

Devservices compose using oracle database construct wrong jdbc url #48090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
theCat69 opened this issue May 27, 2025 · 2 comments · May be fixed by #48109
Open

Devservices compose using oracle database construct wrong jdbc url #48090

theCat69 opened this issue May 27, 2025 · 2 comments · May be fixed by #48109
Labels
area/devservices area/jdbc Issues related to the JDBC extensions kind/bug Something isn't working

Comments

@theCat69
Copy link

Describe the bug

When using devservices compose with an oracle database using image gvenzl/oracle-free:23-slim-faststart the generated jdbc url is wrong and contains extra // like so : oracle:thin://@host:1521/db.

Expected behavior

Devservices compose should generate the correct url for an oracle database like so : oracle:thin:@host:1521/db.

Actual behavior

The generated jdbc or reactive url is wrong and the application cannot establish a connection.

Using quarkus:dev I get the error :
Caused by: java.sql.SQLException: ORA-17067: Invalid Oracle URL specified

How to Reproduce?

https://github.com/theCat69/quarkus-minimal-reproducer-oradb-dc

Output of uname -a or ver

MSYS_NT-10.0-19045 DESKTOP-RSNRORB 3.5.4-0bc1222b.x86_64 2024-12-05 09:27 UTC x86_64 Msys

Output of java -version

openjdk version "21.0.1" 2023-10-17 OpenJDK Runtime Environment (build 21.0.1+12-29) OpenJDK 64-Bit Server VM (build 21.0.1+12-29, mixed mode, sharing)

Quarkus version or git rev

3.22.3

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.9

Additional information

There is an issue in the code of OracleDatasourceServiceConfigurator class. The jdbc url and thus the reactive url are based on this string : "jdbc:%s://@%s:%d/%s%s". However it should be based on this string : "jdbc:%s:@%s:%d/%s%s".

@theCat69 theCat69 added the kind/bug Something isn't working label May 27, 2025
@quarkus-bot quarkus-bot bot added area/devservices area/jdbc Issues related to the JDBC extensions labels May 27, 2025
Copy link

quarkus-bot bot commented May 27, 2025

/cc @barreiro (jdbc), @geoand (devservices)

@geoand
Copy link
Contributor

geoand commented May 27, 2025

cc @yrodiere

@gastaldi gastaldi linked a pull request May 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devservices area/jdbc Issues related to the JDBC extensions kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants