Using Biography mapping causes internal server error
Closed this issue · 4 comments
skyeBreach commented
So i havent seen this mentioned in any threads but assigning an attribute mapping to biography crashes when the inputted data is anything other than null or an empty string. I think this is most likely due to a bad condition as the error message is inversed of what i am giving it. Here is the data that is being passed in and the associated errors:
julien-nc commented
Thanks for reporting this issue. Can you try changing line 302 of lib/Service/ProvisioningService.php
from
$event = new AttributeMappedEvent(ProviderService::SETTING_MAPPING_BIOGRAPHY, $idTokenPayload, $biography);
to
$event = new AttributeMappedEvent(ProviderService::SETTING_MAPPING_GENDER, $idTokenPayload, $gender);
If it fixes it, i'll make a PR soon.
skyeBreach commented
This worked perfectly, thank you for the speedy and easy fix :D
julien-nc commented
Thank you for the feedback! Here is the PR: #888
I'll make a release once it's merged.
julien-nc commented
v5.0.3 is out and includes this fix. Thanks again.