Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Binding to JObject doesn't work correctly in Service Bus extension #21138

Closed
JoshLove-msft opened this issue May 18, 2021 · 0 comments · Fixed by #21165
Closed

[BUG] Binding to JObject doesn't work correctly in Service Bus extension #21138

JoshLove-msft opened this issue May 18, 2021 · 0 comments · Fixed by #21165
Labels
Client This issue points to a problem in the data-plane of the library. Functions Service Bus
Milestone

Comments

@JoshLove-msft
Copy link
Member

JoshLove-msft commented May 18, 2021

When creating a function that binds to a JObject, if the received message does not have a contentType of application/json, a stackoverflow occurs - apparently due to the DataContractBinarySerializer getting confused. A simple fix would be to reorder the operations listed here, so that we do the Json conversion attempt before the XML attempt. Or we could check the typeof(TElement) and special case JObject to preserve the existing behavior as much as possible.

@JoshLove-msft JoshLove-msft added Service Bus Client This issue points to a problem in the data-plane of the library. Functions labels May 18, 2021
@JoshLove-msft JoshLove-msft added this to the [2021] June milestone May 18, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Functions Service Bus
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant