Skip to content

fix: headers should always run through external storage#1396

Open
thakoreh wants to merge 1 commit intotemporalio:mainfrom
thakoreh:fix/headers-external-storage
Open

fix: headers should always run through external storage#1396
thakoreh wants to merge 1 commit intotemporalio:mainfrom
thakoreh:fix/headers-external-storage

Conversation

@thakoreh
Copy link
Copy Markdown

Fixes #1395

The encode_headers parameter was gating the entire _transform_outbound_payload call in _apply_headers. This meant that when encode_headers=False, headers skipped both payload codec encoding AND external storage + size validation.

The fix adds an encode parameter to _transform_outbound_payload so external storage and validation always run, while codec encoding is still controlled by encode_headers.

Test added to verify external storage is called regardless of the encode flag.

@thakoreh thakoreh requested a review from a team as a code owner March 26, 2026 22:13
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 26, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@tconley1428 tconley1428 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a sufficient change to address the issue. It happens in only a single place in the client and does not do so symmetrically across outbound and inbound payloads

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.

[Bug] Headers should always run through external storage

3 participants