OpenConext/OpenConext-profile

'My-profile' and 'My-surfconext' pages fail when contactinfo is missing from metadata

Closed this issue · 1 comments

Several pages fail with a HTTP/500 error when IdP-metadata (the one logging in with) lacks a technical contact:

Feb 20 21:37:33 webapp-2 openconext-profile[26144]: request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Type error: Argument 1 passed to OpenConext\Profile\Value\ContactPersonList::__construct() must be of the type array, null given, called in /apps/programs/openconext/profile/OpenConext-profile-1.0.1/src/OpenConext/Profile/Value/ContactPersonList.php on line 59" at /apps/programs/openconext/profile/OpenConext-profile-1.0.1/src/OpenConext/Profile/Value/ContactPersonList.php line 33 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Argument 1 passed to OpenConext\\Profile\\Value\\ContactPersonList::__construct() must be of the type array, null given, called in /apps/programs/openconext/profile/OpenConext-profile-1.0.1/src/OpenConext/Profile/Value/ContactPersonList.php on line 59 at /apps/programs/openconext/profile/OpenConext-profile-1.0.1/src/OpenConext/Profile/Value/ContactPersonList.php:33)"} []

I think it's just the technical email address that's required here...