Skip to content
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

Invoke-PaginateSearch does not return accented characters correctly #96

Open
bradgrutsch opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@bradgrutsch
Copy link

Setup: Powershell SDK 1.4.4 connected to a tenant with identities with accented characters in their name

Steps to Reproduce:

Run small sample script that calls Invoke-PaginateSearch, queries for the identities with accented characters, and returns the firstname & lastname fields

Expected Results: The cmdlet should run and return the identities names with accented characters

Actual Results: The cmdlet runs and returns the identities with the accented characters replaced with '???' characters.

Comments: This is similar to an existing issue #92, but the linked solution in issue #92 (content-type headers are getting a charset=utf-8 parameter) was not the underlying cause for this issue with Invoke-PaginateSearch.

This issue appears to be caused when the $Response is passed as a parameter to the DeserializeResponse function, the underlying toString() call on the $Response object type must have an incorrect encoding. I have fixed this by changing line 214 in ..\PowerShell\Modules\PSSailpoint.V3\1.4.4\Private\ApiClient.ps1 from

Response = DeserializeResponse -Response $Response -ReturnType $ReturnType -ContentTypes $Response.Headers["Content-Type"]

to:

Response = DeserializeResponse -Response $Response.Content -ReturnType $ReturnType -ContentTypes $Response.Headers["Content-Type"]

@bradgrutsch bradgrutsch changed the title Call to DeserializeResponse in Invoke-ApiClient is converting accented characters to '?' symbols Invoke-PaginateSearch does not return accented characters correctly Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant