-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
Issue with $search query values containing whitespace #10
Comments
Hi @awright415,
ABNF doesn't allow whitespace in search phrase and encoding needed to work as expected:
This works as expected and parsed as a search phrase (because the quotation marks).
|
Thanks for the quick response! I got thrown off by this section of the protocol spec, which shows a phrase search example with unescaped whitespace. Ultimately, the trouble I'm having is running $search queries with odata-v4-server, and perhaps I just submitted the wrong issue on the wrong project. I get 500 responses with the same unexpected character error for those requests (and naturally the whitespace is encoded in the URL). It looks like inside of |
@awright415 - Yes in |
When I send a request to the server with a $search query that has whitespace, I get an "Unexpected Character" error, unless there's an AND/OR in between. So, in other words, the request fails on phrase queries and implicit AND queries. Examples:
The text was updated successfully, but these errors were encountered: