You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the propagator is unable to parse the incoming baggage, extract MUST return a Context with no baggage entries in it.
If the incoming baggage is present, but contains no entries, extract MUST return a Context with no baggage entries in it.
The TextMap Extract specification states that the extract method is passed a context and returns a derived context.
Based on the existing specification if a context contains valid Baggage values and is passed to the baggage propagator to extract an unparssable or empty baggage into those existing values will be cleared. Is this intended?
The text was updated successfully, but these errors were encountered:
MrAlias
changed the title
Should the baggage propagator clear pre-existing baggage on a failed extract?
Should the baggage propagator clear pre-existing baggage?
Mar 10, 2021
From the specification SIG meeting the take-away is that if an extraction fails it needs to not touch what is in the existing context. This is specified here:
If a value can not be parsed from the carrier, for a cross-cutting concern, the implementation MUST NOT throw an exception and MUST NOT store a new value in the Context, in order to preserve any previously existing valid value.
Based on the 1.0.1 version of the Baggage specification:
The TextMap Extract specification states that the extract method is passed a context and returns a derived context.
Based on the existing specification if a context contains valid Baggage values and is passed to the baggage propagator to extract an unparssable or empty baggage into those existing values will be cleared. Is this intended?
The text was updated successfully, but these errors were encountered: