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
Describe the bug
Misconfigurations in outbound push config result in unexpected behavior.
If a mapping value does not have type "string" and is not an Object with a property "expr", this is a misconfiguration; it is not defined what the mapping should do.
What it actually does is include the entire document in the mapped field in the payload.
To Reproduce
create an outbound push config with a mapping field that is neither a string nor an Object with property "expr", e.g.
create any document that will trigger the outbound push (any report with the example above)
Look at the mapped field in the outbound push body ("example_path" in the example above); if will contain the entire document
Expected behavior
If the configuration has a mapping value that is undefined, mapping should raise error OutboundError(Mapping error for '${key}/${dest}' JS error on source document: '${doc._id}': ${err}); similar to what happens with other config misconfigurations.
This alerts users to fix the configuration instead of allowing the outbound push to silently continue with a payload that is probably not what they intended.
The text was updated successfully, but these errors were encountered:
Describe the bug
Misconfigurations in outbound push config result in unexpected behavior.
If a mapping value does not have type "string" and is not an Object with a property "expr", this is a misconfiguration; it is not defined what the mapping should do.
What it actually does is include the entire document in the mapped field in the payload.
To Reproduce
Expected behavior
If the configuration has a mapping value that is undefined, mapping should raise error
OutboundError(
Mapping error for '${key}/${dest}' JS error on source document: '${doc._id}': ${err});
similar to what happens with other config misconfigurations.This alerts users to fix the configuration instead of allowing the outbound push to silently continue with a payload that is probably not what they intended.
The text was updated successfully, but these errors were encountered: