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
When attempting to use a + symbol in a filter string the resulting query is not correctly encoded
Expected behavior
symbol is encoded as %2B in the request made against graph
How to reproduce
run Get-MgUser -Filter "onPremisesImmutableId in ('AegKW3DO+Uin3xHz7t0pIw==', 'YQuy6DbntUCGREZeTT5YwA==')" -Debug
See that the request made contains a space in the value supplied as the $filter query parameter.
HTTP Method:
GET
Absolute Uri:
https://graph.microsoft.com/v1.0/users?$filter=onPremisesImmutableId in %28%27AegKW3DO Uin3xHz7t0pIw%3D%3D%27%2C %27YQuy6DbntUCGREZeTT5YwA%3D%3D%27%29
Describe the bug
When attempting to use a + symbol in a filter string the resulting query is not correctly encoded
Expected behavior
How to reproduce
Get-MgUser -Filter "onPremisesImmutableId in ('AegKW3DO+Uin3xHz7t0pIw==', 'YQuy6DbntUCGREZeTT5YwA==')" -Debug
SDK Version
2.23.0
Latest version known to work for scenario above?
No response
Known Workarounds
results in the correct encoding of the URL parameters:
Debug output
Click to expand log
Configuration
PS C:\Users\gavinbarron> $PSVersionTable
Name Value
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Other information
This issue is being tracked as an IcM id=544584306
The text was updated successfully, but these errors were encountered: