-
Notifications
You must be signed in to change notification settings - Fork 189
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
Search user/group by with OData special charcters in search term ( e.g. @
or -
) doesn't work
#7990
Comments
cc @jvillafanez |
This seems to be a problem with the parser, not us. The The error is gone, but it doesn't return anything for me though. If it should return anything, then we'll need to check what happens on our side. I'm using the admin account to prevent potential issues, but I think the behavior should be the same for any account. |
It seems we're searching with the double quotes if we include them, that's why I don't see any result. We need to fix this. |
#8035 should fix the issue. As said in the PR, the double quotes will be required in order to prevent the parser from interpreting the email. If the email isn't in double quotes, the parser will still complain the same way it's doing now. |
I'll close this, as the (un-)quoting issue was fixed in libregraph. @ScharfViktor please note that it's best to quote the search term on the request. |
Actually the same issue exists for groups obviously. I'll reopen this and work on a fix. |
@
or -
) doesn't work
related: #7887
curl -vk -ueinstein:relativity https://localhost:9200/graph/v1.0/users?%24search=mar
-workscurl -vk -ueinstein:relativity https://localhost:9200/graph/v1.0/users?%24search=marie%40example.org
- doesn't workActual: 400
{"error":{"code":"invalidRequest","innererror":{"date":"2023-12-15T15:22:03Z","request-id":"VIKTORS-AIR.local/zBMeJfPeNQ-001303"},"message":"Token '@example.org' is invalid"}}
The text was updated successfully, but these errors were encountered: