8000 Default jdbc-ping cluster setup for distributed caches fails in Oracle by ryanemerson · Pull Request #40999 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Default jdbc-ping cluster setup for distributed caches fails in Oracle #40999

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryanemerson
Copy link
Contributor
@ryanemerson ryanemerson commented Jul 8, 2025

Closes #40784

In general we rely upon Hibernate/Liquibase and the DB drivers to handle Schema case sensitivity for us, for example:

try (ResultSet rs = statement.executeQuery(String.format(SQL_GET_LATEST_VERSION, getSchema(schema)))) {

However, when creating the SQL query for JDBC_PING and JpaRealmProvider#preRemove we are explicitly quoting the name of the default schema making it case-sensitive.

When querying the default schema via Hibernate, the schema name is returned case insensitively in lower-case. Therefore, in the case of DBs that don't default to lower-case, e.g. Oracle, applying quotations around the name in the SQL will lead to a mismatch and the schema will not be found.

Closes keycloak#40784

Signed-off-by: Ryan Emerson <remerson@redhat.com>
@ryanemerson ryanemerson changed the title 40784/oracle db schema case sensitive Default jdbc-ping cluster setup for distributed caches fails in Oracle Jul 8, 2025
@ryanemerson ryanemerson marked this pull request as ready for review July 8, 2025 13:06
@ryanemerson ryanemerson requested a review from a team as a code owner July 8, 2025 13:06
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.

Default jdbc-ping cluster setup for distributed caches fails in Oracle
1 participant
0