Skip to content

Addresses #3436. - #4197

Draft
williamjennings00 wants to merge 1 commit into
spring-projects:mainfrom
williamjennings00:fix/3436-session-lookup-exception
Draft

williamjennings00 wants to merge 1 commit into
spring-projects:mainfrom
williamjennings00:fix/3436-session-lookup-exception

Conversation

@williamjennings00

Copy link
Copy Markdown

Summary

Addresses #3436.

Introduce SessionLookupException to provide access to the session ID when a session repository lookup fails.

Changes

  • Wrap runtime exceptions thrown by findById() during requested session lookups.
  • Expose the failed session ID through getSessionId().
  • Preserve the original exception as the cause.
  • Avoid including session IDs in exception messages to prevent accidental exposure of sensitive information in application logs.

Testing

Added a regression test covering multiple requested session IDs to verify that the exception identifies the session that failed rather than the first requested session.

The test also verifies that the original exception is preserved.

Signed-off-by: Williamjennings00 <william.jennings73@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants