-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
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".