Middlware can\'t handle special characters in common name
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- php
- Domain
- api, authentication, backend
Research direction
Start by reproducing the failure with the supplied common name and email-search scenario. Inspect IdentityService.php at line 120 and the middleware client's ApiService.php at line 84, then trace the identity-search request and response. Done means identities with these special characters can be found successfully in self-service and RA without a 500 error.
Written by the indexing model from the issue text.
Description
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:
- Dominant language
- PHP
- Stars
- 3
- Forks
- 3
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenConext/Stepup-Middleware
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
OpenConext/Stepup-Middleware#637 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
OpenConext/Stepup-Middleware#607 ·
-
logging
Difficulty 3/5 1-2 days Newbie friendliness 35/100
OpenConext/Stepup-Middleware#582 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
OpenConext/Stepup-Middleware#559 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenConext/Stepup-Middleware#537 ·
All issues in OpenConext/Stepup-Middleware
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
parime/glpi-iso27001-management#1165 ·
Maintainers usually reply within 1 day
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
opnsense/plugins#5976 · 1 comment ·
Maintainers usually reply within 1 day