dotnet-sdk/test/Dapr.AspNetCore.Integration...
Ryan Nowak cda2900997
Support non-JSON text in cloud events middleware (#621)
Fixes: #592

This change teaches the cloud events middleware to JSON-decode non-JSON
content when it appears in the `data` attribute in a cloud event.

There are three cases for cloud events that matter:

- data is used, content is a JSON object, datacontentype is JSON
- data is used, content is a JSON string, dataconenttype != JSON
- data_base64 is used, content is base64 bytes

We weren't handling the second of this. If you submitted the content:

`"data": "hello, "\world!\""` with datacontenttype = text/plain

You would end up with `"hello, \"world!\""` in the request body instead
of `hello, "world!"`.

This is a very subtle case, and I'm trying to fix it before users couple
their code to the wrong behavior. Since this is technically a breaking
change, I've added a opt-out so you can restore the buggy behavior.
2021-03-06 16:48:53 -08:00
..
Dapr.AspNetCore.IntegrationTest.App.csproj Add .NET 5 testing (#458) 2021-01-04 11:13:35 -08:00
DaprController.cs Support non-JSON text in cloud events middleware (#621) 2021-03-06 16:48:53 -08:00
Program.cs Changing to Dapr.* (#89) 2019-10-11 13:42:30 -07:00
Startup.cs Multi pubsub (#374) 2020-08-17 13:58:50 -07:00
UserInfo.cs Add middleware for unwrapping cloud events 2019-10-12 20:25:38 -07:00
Widget.cs Changing to Dapr.* (#89) 2019-10-11 13:42:30 -07:00