8000 Oracle driver problems in Keycloak 26.2.1 by mabartos · Pull Request #39189 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Oracle driver problems in Keycloak 26.2.1 #39189

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged

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.

Closes keycloak#39182

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
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?

< 8000 div class="timeline-comment-actions flex-shrink-0 d-flex flex-items-center">
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
0