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
These actions also expect to have access to the Form values of the request, which is not possible, because the OData middleware reads the body which makes it impossible for asp.net to parse it, because the body can be read only once.
Solution
if the body is formatted as x-www-form-urlencoded key-value pairs, parse it to a similar JObject as we do in case of a json string:
Currently we expect clients to send parameters in a json formatted body. Some actions are designed to work with a
form-urlencoded
request body:These actions also expect to have access to the
Form
values of the request, which is not possible, because the OData middleware reads the body which makes it impossible for asp.net to parse it, because the body can be read only once.Solution
if the body is formatted as
x-www-form-urlencoded
key-value pairs, parse it to a similar JObject as we do in case of a json string:sensenet/src/OData/ODataMiddleware.cs
Line 357 in f731f79
make these parameters accessible for the action method, most likely through theOperationCallingContext
object.The text was updated successfully, but these errors were encountered: