Fix null node for list of struct in payload_to_metadaata filter#32309
Merged
KBaichoo merged 1 commit intoenvoyproxy:mainfrom Mar 4, 2024
Merged
Conversation
Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com>
zuercher
approved these changes
Feb 16, 2024
Member
zuercher
left a comment
There was a problem hiding this comment.
lgtm, though I did have one question that, if it's a problem, has been one for a while. Ok to fix in a subsequent PR.
...nsions/filters/network/thrift_proxy/filters/payload_to_metadata/payload_to_metadata_filter.h
Show resolved
Hide resolved
mattjo
added a commit
to mattjo/envoy
that referenced
this pull request
Mar 5, 2024
* main: (151 commits) http3: fixing an upstream threading issue and bumping http3 upstream code back to alpha (envoyproxy#32640) rlqs: reset quota usage (envoyproxy#32569) proxy status: add more mapping to proxystatus (envoyproxy#32606) rlqs: add logging around token bucket (envoyproxy#32612) Logging: ENVOY_BUG include filter name. (envoyproxy#32663) mobile: Reenable the FilterIntegrationTest.AltSvcCachedH2Slow test (envoyproxy#32675) c++20 by default (envoyproxy#32585) Docs: Add diagram for histogram stat sink. (envoyproxy#32665) Fix null node for list of struct in payload_to_metadaata filter (envoyproxy#32309) metrics_service: populate histogram summary sample sum (envoyproxy#32666) build(deps): bump postgres from `0e564da` to `f58300a` in /examples/shared/postgres (envoyproxy#32632) build(deps): bump the examples-ext-authz group in /examples/ext_authz with 1 update (envoyproxy#32654) build(deps): bump distroless/base-nossl-debian12 from `28dc895` to `0e777c6` in /ci (envoyproxy#32652) Update QUICHE from 02047e04d to 3373df94b (envoyproxy#32650) ci/logging: Add failure detection (envoyproxy#32662) Change udpa renaming workaround to not compile the same archive twice (envoyproxy#32647) sockets: flipping graceful client socket creation failure (envoyproxy#32602) TcpAsyncClient: enhance reconnect robustness (envoyproxy#32578) owners: adding Fredy as an Enovy Mobile maintainer (envoyproxy#32638) ci: Add scheduled garbage collection (and fix retest) (envoyproxy#32639) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message:
Previously we rely on
fieldBeginright beforestructBeginto determine this is not top-level struct.i.e.,
fieldBegin structBegin structEnd fieldEndsequence.However, while we have a list of struct, this assumption doesn't hold since the structure inside a container inherits the field id of the container.
i.e., we had
fieldBegin listBegin (structBegin structEnd)*n listEnd fieldEndsequence.Therefore, introduce a stack of field ids so could we track field id better.
In the added unit test, it hits assertion before fix.
Additional Description:
Risk Level: low
Testing: unit