Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: parse errors in OData $filter and $orderby are not sent back to the client proeprly [1041]

$
0
0
Right now, if you use QueryableAttribute and have syntax errors in your query string, you get back a 400 with error message that says "The query specified in the URI is not valid.". It is right but useless. We should send back better error messages saying what is wrong with the URI.

The issue is that QueryableAttriubte catches ODataException (raised when there is a parser error) and created an error response with the following code

```
actionExecutedContext.Response = request.CreateErrorResponse(
HttpStatusCode.BadRequest,
SRResources.UriQueryStringInvalid,
e);
```

we should include the message from the exception e in the error response generated.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>