GLM-5.3 Flash · Heavy
add-caching-support-for-identityproviderstorageprovider-getforlogin-operations-keycloak
Keycloak · Java · M · 100–299 lines · 3 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.
- Gold bugs found
- 1 of 7
- Comments published
- 3
- Comments matching a bug
- 1
- Comments not matching
- 2
- Cost of this PR
- $0.229
Published comments (3)
Login cache invalidation skipped when org-aware wrapper masks IDP login eligibility — When the organization is disabled, the org-aware wrapper's `isEnabled()` makes `getLoginPredicate()` false, so updates like removing `BROKER_PUBLIC` or hiding or disabling the IDP skip invalidation and stale `.idp.login` caches serve a hidden broker after re-enabling. Evaluate the predicate on the unwrapped model, e.g. via `idpDelegate.getByAlias()`.
Login cache uses empty-string sentinel that collides with empty organizationId — When a call passes an empty-string `organizationId`, the wrong result lands under the `""` key and later `null`-filter lookups skip the re-fetch, returning an empty list until invalidation. Use a non-colliding sentinel like `getByOrganization`'s `-1.-1`, or normalize empty strings to `null`.
isEnabled re-check in OrganizationAwareIdentityProviderBean lacks test coverage — If this `isEnabled()` filter broke, the suite would still pass, since `testCacheIDPForLogin` calls `getForLogin` directly and never renders through the bean. Add a test path that exercises `OrganizationAwareIdentityProviderBean`, or assert on the models it resolves.