Skip to content

fix(serdes): rebuild file path in deserialize - #937

Draft
SilanHe wants to merge 1 commit into
mainfrom
fix/filesystem-serdes-rebuild-path
Draft

SilanHe wants to merge 1 commit into
mainfrom
fix/filesystem-serdes-rebuild-path

Conversation

@SilanHe

@SilanHe SilanHe commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #936. Port of aws-durable-execution-sdk-js#1219.

deserialize now rebuilds the file path from basePath, pathEncoding, the execution ARN and the entity ID. It uses only the write ID from the envelope's file name.

Behavior change: a file envelope written under another identity no longer reads back. Producers must use the consumer's own context or send inline data.

Tests: mvn install on sdk, sdk-testing and sdk-integration-tests passes.

🤖 AI-assisted comment

@SilanHe
SilanHe force-pushed the fix/filesystem-serdes-rebuild-path branch 2 times, most recently from 4054bc0 to 09d58fa Compare December 2, 2026 21:28
@SilanHe
SilanHe force-pushed the fix/filesystem-serdes-rebuild-path branch from 09d58fa to e0792b4 Compare December 2, 2026 23:05

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(serdes): FileSystemSerDes.deserialize must not trust the envelope's file path

2 participants