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
Exception is thrown that string is invalid format.
Additional details
As of ODataLib V7, String/numeric data in a JSON Payload that isn't described by metadata or @odata.type is now read as an ODataUntypedValue. WebAPI and ODataClient attempt to parse this value using ODataUriUtils, but that code doesn't properly ignore special characters inside double-quotes (it expects single quotes, as in a URI) and thus fails if the string property contains properties such as brackets, commas, or braces.
The text was updated successfully, but these errors were encountered:
Attempting to deserialize an untyped string containing special characters fails.
Assemblies affected
WebAPI 6.x, ODataClient
Reproduce steps
Expected result
string would be deserialized successfully
Actual result
Exception is thrown that string is invalid format.
Additional details
As of ODataLib V7, String/numeric data in a JSON Payload that isn't described by metadata or @odata.type is now read as an ODataUntypedValue. WebAPI and ODataClient attempt to parse this value using ODataUriUtils, but that code doesn't properly ignore special characters inside double-quotes (it expects single quotes, as in a URI) and thus fails if the string property contains properties such as brackets, commas, or braces.
The text was updated successfully, but these errors were encountered: