gnodet opened a new pull request, #31379: URL: https://github.com/apache/camel/pull/31379
## Summary Fixes four bugs in camel-keycloak component (CAMEL-27954): 1. **executeActionsEmail parameter order bug**: The method was calling `executeActionsEmail(redirectUri, lifespan.toString(), actions)` which matched the wrong overload `(String clientId, String redirectUri, List actions)`, causing redirectUri to be sent as clientId and lifespan as redirectUri. Now uses the correct overload with proper parameter order: `executeActionsEmail(clientId, redirectUri, lifespan, actions)`. 2. **Unused introspection configuration options**: The `introspectToken` operation was always creating `KeycloakTokenIntrospector` with hardcoded values `(false, 0)` instead of using the endpoint configuration options `introspectionCacheEnabled` and `introspectionCacheTtl`. Now uses the configuration values. 3. **Silent skip of unmatched usernames**: `bulkDeleteUsers` and `bulkAssignRoleToUsers` silently skipped usernames without an exact match - no result entry and not counted in total or failed. Now tracks these and reports them with status "not_found". 4. **Configuration option descriptions**: Updated descriptions for introspection options to reflect that they are now used by the `introspectToken` operation. ## Changes - Fixed parameter order in `executeActionsEmail` to use correct Keycloak API overload - Updated `introspectToken` to use `introspectionCacheEnabled` and `introspectionCacheTtl` from configuration - Modified `bulkDeleteUsers` and `bulkAssignRoleToUsers` to track and report not-found usernames - Updated `KeycloakConfiguration` descriptions for introspection options - Added comprehensive tests in `KeycloakBugFixesTest` for all fixes ## Test plan - [x] New unit tests added in `KeycloakBugFixesTest` covering all four bug fixes - [x] All existing tests pass (181 tests) - [x] Code formatted with `mvn formatter:format impsort:sort` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
