We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the LinqToQueryableAttibute in the webApi2 solution any url encoded characters are not decoded:
Within LinqToQueryable.cs (27) => when the query string is pulled it is not checked for any encoding.
Then LinqToQueryable.cs (35) => this is passed to extension method LinqToQuerystring in an encoded state
Then Extensions.cs(47) => the querystring is split based upon '$' but '$' is still %24 so odataQueries count is 0
*** FIX ***
I got the code locally => added a reference to System.Web and in the LinqToQueryable.cs at line 34 did this:
var queryString = HttpUtility.UrlDecode(actionExecutedContext.Request.RequestUri.Query);
Works for both now.
The text was updated successfully, but these errors were encountered:
Thanks for the report, and sorry for the delay in responding. I hope to look at this in the next week or two.
Sorry, something went wrong.
+1 Experiencing this too
Decoded URL in LinqToQueryableAttribute. This fixes issues with encod…
7e44064
…ed urls. Fixes beyond-code-github#36 and beyond-code-github#51.
Successfully merging a pull request may close this issue.
When using the LinqToQueryableAttibute in the webApi2 solution any url encoded characters are not decoded:
Within LinqToQueryable.cs (27) => when the query string is pulled it is not checked for any encoding.
Then LinqToQueryable.cs (35) => this is passed to extension method LinqToQuerystring in an encoded state
Then Extensions.cs(47) => the querystring is split based upon '$' but '$' is still %24 so odataQueries count is 0
*** FIX ***
I got the code locally => added a reference to System.Web and in the LinqToQueryable.cs at line 34 did this:
var queryString = HttpUtility.UrlDecode(actionExecutedContext.Request.RequestUri.Query);
Works for both now.
The text was updated successfully, but these errors were encountered: