Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Oracle driver problems in Keycloak 26.2.1#39189

Merged
vmuzikar merged 1 commit intokeycloak:mainfrom
mabartos:KC-39182
Apr 24, 2025
Merged

Oracle driver problems in Keycloak 26.2.1#39189
vmuzikar merged 1 commit intokeycloak:mainfrom
mabartos:KC-39182

Conversation

@mabartos
Copy link
Contributor

@mabartos mabartos commented Apr 24, 2025

Closes #39182

image

Based on Quarkus reference: https://quarkus.io/version/3.20/guides/datasource#extensions-and-database-drivers-reference

@shawkins Could you please check it? Thanks!

We should consider having some tests for XA.

Copy link
Contributor

@vmuzikar vmuzikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR @mabartos.

However, what concerns me is that tests didn't catch it. It's not really XA related, is it? Also non-XA artifacts were renamed, no?

Copy link
Contributor

@shawkins shawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @mabartos

@vmuzikar
Copy link
Contributor

Created #39192

@mabartos
Copy link
Contributor Author

@vmuzikar Thanks for creating that issue!

@shawkins
Copy link
Contributor

shawkins commented Apr 24, 2025

However, what concerns me is that tests didn't catch it. It's not really XA related, is it? Also non-XA artifacts were renamed, no?

@vmuzikar the oracle driver jar provides both oracle.jdbc.OracleDriver, and oracle.jdbc.driver.OracleDriver. It does look like oracle.jdbc.OracleDriver is the prefered one, but that doesn't match what quarkus is using - https://docs.oracle.com/cd/E18283_01/appdev.112/e13995/oracle/jdbc/package-summary.html

Can't find any acutal deprecation notice about the oracle.jdbc.driver package.

@vmuzikar
Copy link
Contributor

@shawkins Can we then trust this actually fixes the issue? 🤔

@mabartos
Copy link
Contributor Author

Yes, as @shawkins mentioned, there are two of them for non-XA. I haven't found the difference rationale as well, so I'm just relying on the Quarkus reference

@vmuzikar vmuzikar enabled auto-merge (squash) April 24, 2025 15:29
@shawkins
Copy link
Contributor

Can we then trust this actually fixes the issue? 🤔

As @mabartos says, if we trust quarkus :)

@mabartos
Copy link
Contributor Author

mabartos commented Apr 24, 2025

@shawkins Can we then trust this actually fixes the issue? 🤔

For XA: @vmuzikar It will definitely solve the issue as the previous XA driver referenced interface that the actual XA driver implements. From my understanding, Agroal uses reflection to create instances of these drivers, and the interface basically does not have the required constructor - cannot be initialized.

For non-XA: The change in this PR is not required, but at least we're aligned with Quarkus.

@mabartos
Copy link
Contributor Author

As @mabartos says, if we trust quarkus :)

These docs might not be up-to-date as seen here: quarkusio/quarkus#47530, but it's the current way.

It'd be good to verify what is preferred for the Oracle driver.

@vmuzikar vmuzikar merged commit 54a39bc into keycloak:main Apr 24, 2025
80 checks passed
@shawkins
Copy link
Contributor

It'd be good to verify what is preferred for the Oracle driver.

From that perspective, I'd say that Quarkus is out-of-date, but has yet to matter because Oracle doesn't want to break anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Oracle driver problems in keycloak 26.2.1

3 participants