You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] AppAuth lifecycle reservation SQL has no PostgreSQL or Oracle dialect implementation #8133
Master aab453f06dbd135da9b329ee153758ceac0e1834 (2.7.3-SNAPSHOT), Admin AppAuth lifecycle API with a PostgreSQL or Oracle database.
Problem
apply and revoke both begin by calling AppAuthRequestMapper.reserveIfAbsent, whose only SQL implementation uses MySQL-specific syntax:
INSERT INTO app_auth_request
(id, caller_key, namespace_id, request_id, request_hash, auth_id, state)
VALUES (...)
ON DUPLICATE KEY UPDATE id =app_auth_request.id
There is no databaseId-specific PostgreSQL/Oracle implementation or supported alternative. The lifecycle endpoints therefore reach unsupported reservation SQL on those backends.
Apply reservation and revoke in the same transaction service both use this mapper operation.
Database ID provider already distinguishes PostgreSQL, Oracle, MySQL and other backends.
AppAuth request tables and lifecycle permissions were added to the PostgreSQL/Oracle schema and upgrade scripts as well, so this is not confined to a MySQL-only schema installation.
Reproduction / validation
On a properly migrated PostgreSQL/Oracle Admin deployment, configure an authorized service account and invoke lifecycle apply or revoke; inspect the first reservation statement.
Local parser checks using the reservation statement and an isolated H2 table produced:
These checks exercise H2 compatibility modes, not real PostgreSQL or Oracle servers. The unsupported-dialect finding is based on the actual mapper SQL and its absence of dialect variants; real-database integration and concurrency validation remain required.
Expected behavior / acceptance
Implement reservation SQL with the appropriate database dialects, retaining the unique caller/namespace/request key and the following locking semantics.
Activity