Skip to content

Conversation

@wbpcode
Copy link
Member

@wbpcode wbpcode commented Aug 30, 2025

Commit Message: router: fix a bug where header mutations may not be processed properly

Additional Description:

The #39534 introduced a bug where the `response_headers_to_add`` may be processed multiple times for local responses from the router filter.

The sendLocalReply method will call the finalizeResponseHeaders() and the #39534 updated the code and make the finalizeResponseHeaders() be called in the modify_headers_ callback. This finally resulted in this problem.

Risk Level: low.
Testing: integration.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

envoyproxy#40856)

Commit Message: router: fix a bug where header mutations may not be
processed properly

Additional Description:

The envoyproxy#39534 introduced a bug
where the `response_headers_to_add`` may be processed multiple times for
local responses from the router filter.

The sendLocalReply method will call the `finalizeResponseHeaders()` and
the envoyproxy#39534 updated the code and
make the `finalizeResponseHeaders()` be called in the modify_headers_
callback. This finally resulted in this problem.

Risk Level: low.
Testing: integration.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

Signed-off-by: WangBaiping <[email protected]>
@wbpcode
Copy link
Member Author

wbpcode commented Aug 30, 2025

/backport

@repokitteh-read-only repokitteh-read-only bot added the backport/review Request to backport to stable releases label Aug 30, 2025
@wbpcode
Copy link
Member Author

wbpcode commented Aug 31, 2025

/retest

1 similar comment
@wbpcode
Copy link
Member Author

wbpcode commented Sep 1, 2025

/retest

@phlax phlax self-assigned this Sep 1, 2025
@phlax
Copy link
Member

phlax commented Sep 1, 2025

seems like the release branches are also being hit with the go issue we fixed on main

@wbpcode
Copy link
Member Author

wbpcode commented Sep 2, 2025

seems like the release branches are also being hit with the go issue we fixed on main

What should I do to fix it? 🤣

@phlax
Copy link
Member

phlax commented Sep 2, 2025

we will need to backport the fix first ... i can raise a pr for this branch now ...

@wbpcode
Copy link
Member Author

wbpcode commented Sep 3, 2025

we will need to backport the fix first ... i can raise a pr for this branch now ...

Thanks.

@wbpcode wbpcode enabled auto-merge (squash) September 5, 2025 14:04
Copy link
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @wbpcode

@wbpcode wbpcode merged commit 17defa5 into envoyproxy:release/v1.35 Sep 5, 2025
11 checks passed
@wbpcode wbpcode deleted the dev-backport-fix branch September 6, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/review Request to backport to stable releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants