Skip to content

fix(sessions): reject a duplicate session id instead of overwriting the session - #1503

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_978199397
Open

fix(sessions): reject a duplicate session id instead of overwriting the session#1503
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_978199397

Conversation

@copybara-service

Copy link
Copy Markdown

fix(sessions): reject a duplicate session id instead of overwriting the session

InMemorySessionService.createSession replaced the stored session when handed a
sessionId already in use, discarding its events and state and returning an
empty session. It now errors with SessionAlreadyExistsException, a new subclass
of SessionException, matching Python and Go.

…he session

`InMemorySessionService.createSession` replaced the stored session when handed a
`sessionId` already in use, discarding its events and state and returning an
empty session. It now errors with `SessionAlreadyExistsException`, a new subclass
of `SessionException`, matching Python and Go.

PiperOrigin-RevId: 978199397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant