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

Middlware can\'t handle special characters in common name #497

Open
phavekes opened this issue Nov 30, 2024 · 1 comment
Open

Middlware can\'t handle special characters in common name #497

phavekes opened this issue Nov 30, 2024 · 1 comment

Comments

@phavekes
Copy link
Member

This issue is imported from pivotal - Originaly created at Jul 8, 2021 by Peter Havekes

I have a user with common name :
🤖️🤣️🌎️😫️ ، ؛ ؟ ء آ

When he tries to log on to selfservice for the 2nd time an error occurs:

Jul  8 08:59:23 sa-test-app.surfconext.nl stepup-selfservice[30298]: {"channel":"app","level":"CRITICAL","message":"Exception when searching identity: \"Resource could not be read (status code 500)\"","context":[],"extra":{"server":"sa.test.surfconext.nl","application":"self-service","request_id":"82b3f603d08e4741096ddbe5f47be1e8"}}
Jul  8 08:59:23 sa-test-app.surfconext.nl stepup-selfservice[30298]: {"channel":"app","level":"ERROR","message":"Could not authenticate, Exception of type \"Surfnet\\StepupSelfService\\SelfServiceBundle\\Exception\\RuntimeException\" encountered: \"Exception when searching identity: \"Resource could not be read (status code 500)\"\"","context":[],"extra":{"server":"sa.test.surfconext.nl","application":"self-service","request_id":"82b3f603d08e4741096ddbe5f47be1e8"}}
Jul  8 08:59:23 sa-test-app.surfconext.nl stepup-selfservice[30298]: {"channel":"request","level":"CRITICAL","message":"Uncaught PHP Exception Surfnet\\StepupSelfService\\SelfServiceBundle\\Exception\\RuntimeException: \"Exception when searching identity: \"Resource could not be read (status code 500)\"\" at /opt/stepup/Stepup-SelfService-3.4.0-20210504124157Z-78ead56b2471c0ac9bfd47158554ba011f12fcfe/src/Surfnet/StepupSelfService/SelfServiceBundle/Service/IdentityService.php line 120","context":{"exception":{"class":"Surfnet\\StepupSelfService\\SelfServiceBundle\\Exception\\RuntimeException","message":"Exception when searching identity: \"Resource could not be read (status code 500)\"","code":0,"file":"/opt/stepup/Stepup-SelfService-3.4.0-20210504124157Z-78ead56b2471c0ac9bfd47158554ba011f12fcfe/src/Surfnet/StepupSelfService/SelfServiceBundle/Service/IdentityService.php:120","previous":{"class":"Surfnet\\StepupMiddlewareClient\\Exception\\ResourceReadException","message":"Resource could not be read (status code 500)","code":0,"file":"/opt/stepup/Stepup-SelfService-3.4.0-20210504124157Z-78ead56b2471c0ac9bfd47158554ba011f12fcfe/vendor/surfnet/stepup-middleware-client-bundle/src/Surfnet/StepupMiddlewareClient/Service/ApiService.php:84"}}},"extra":{"art":"19131","server":"sa.test.surfconext.nl","application":"self-service","request_id":"82b3f603d08e4741096ddbe5f47be1e8"}}

When searching for this users' email-adress in RA this error is shown:

@phavekes
Copy link
Member Author

Maybe the problem is in the JSON encoding:

select sensitive_data from middleware.event_stream_sensitive_data where identity_id = "95d90a79-6ffc-4537-8971-e859db848b62";
{"common_name":"\ud83e\udd16\ufe0f\ud83e\udd23\ufe0f\ud83c\udf0e\ufe0f\ud83d\ude2b\ufe0f \ud83c\udf8c\ufe0f","email":"[email protected]"}
``` (Peter Havekes - Jul 9, 2021)

@phavekes phavekes removed their assignment Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant