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
{{ message }}
Repository navigation
Search user/group by with OData special charcters in search term ( e.g. @ or -) doesn't work #7990
This seems to be a problem with the parser, not us. The @ symbol is being interpreted by the odata parser.
I think you need to enclose the mail within double quotes so it's interpreted as one token: curl -vk -ueinstein:relativity https://localhost:9200/graph/v1.0/users?%24search=%22marie%40example.org%22
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.
#8035 should fix the issue.
I have tested only with the admin account, but the behavior should be the same for all the accounts. Note that it affects to both ldap and cs3 backends.
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.
changed the title [-]Search user by full email doesn't work [/-][+]Search user/group by with OData special charcters in search term ( e.g. `@` or `-`) doesn't work [/+]on Dec 21, 2023
Activity
v-scharf commentedon Dec 20, 2023
cc @jvillafanez
jvillafanez commentedon Dec 20, 2023
This seems to be a problem with the parser, not us. The
@symbol is being interpreted by the odata parser.I think you need to enclose the mail within double quotes so it's interpreted as one token:
curl -vk -ueinstein:relativity https://localhost:9200/graph/v1.0/users?%24search=%22marie%40example.org%22The 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.
jvillafanez commentedon Dec 20, 2023
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.
jvillafanez commentedon Dec 20, 2023
#8035 should fix the issue.
I have tested only with the admin account, but the behavior should be the same for all the accounts. Note that it affects to both ldap and cs3 backends.
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.
rhafer commentedon Dec 21, 2023
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.
rhafer commentedon Dec 21, 2023
Actually the same issue exists for groups obviously. I'll reopen this and work on a fix.
[-]Search user by full email doesn't work [/-][+]Search user/group by with OData special charcters in search term ( e.g. `@` or `-`) doesn't work [/+]graph/groups: Handle quoted search terms for in GetGroups
graph/groups: Handle quoted search terms in GetGroups
graph/groups: Handle quoted search terms in GetGroups
graph/groups: Handle quoted search terms in GetGroups