- Issue created by @pbattino
- First commit to issue fork.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - @sakthi_dev opened merge request.
- Status changed to Needs review
over 1 year ago 12:38pm 20 April 2023 - 🇬🇧United Kingdom pbattino Reading
Is it possible that this error is caused by a missing default value for those fields? If I simply save the form, the problem persists, but if I edit even just one of those fields, then the error disappears. I can see that the openid_connect.settings now has one extra attribute:
role_mappings: ... <one line for each role> ...
- 🇬🇧United Kingdom pbattino Reading
oops.. sorry, cross-posting, I did not see the "Please review message"
- 🇬🇧United Kingdom pbattino Reading
I think it works!
I still get:
Warning: foreach() argument must be of type array|object, null given in Drupal\openid_connect\OpenIDConnect->saveUserinfo() (line 711 of modules/contrib/openid_connect/src/OpenIDConnect.php).
after login, probably because I haven't specified a single role mapping, so the foreach() still gets a 'null'.Loosely related to this issue: possibility to turn off role mapping. It's related in the sense that if there's such a setting, it would impact all places like this where it's assumed the role_mappings is populated.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - Status changed to RTBC
over 1 year ago 1:37pm 21 April 2023 - 🇫🇮Finland back-2-95 Helsinki
Hello,
I cannot apply this patch to either 3.0.0-alpha2 or head of 3.x branch ?
- First commit to issue fork.
- @brian-c opened merge request.
- last update
over 1 year ago 100 pass -
jcnventura →
committed b7bee803 on 3.x authored by
sakthi_dev →
Issue #3355330 by sakthi_dev, Brian-C, pbattino, jcnventura: Trying to...
-
jcnventura →
committed b7bee803 on 3.x authored by
sakthi_dev →
-
jcnventura →
committed f727f7a9 on 2.x authored by
sakthi_dev →
Issue #3355330 by sakthi_dev, Brian-C, pbattino, jcnventura: Trying to...
-
jcnventura →
committed f727f7a9 on 2.x authored by
sakthi_dev →
- Status changed to Fixed
over 1 year ago 12:00am 27 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 2:54pm 11 October 2023 - 🇺🇸United States phernand42
Not sure these changes made it into the latest downloadable version (3.0.0-alpha2). I downloaded via composer and also checked zip download on module download page ( https://www.drupal.org/project/openid_connect/releases/3.0.0-alpha2 → ) and it still shows old code.
- 🇺🇸United States phernand42
Yeah it didn't make it in unfortunately. Seems like the issue was automatically closed due to no activity. For anyone else who wants to apply this change to the latest version (3.0.0-alpha2) you can simply add the following link to your composer.json file (same as a patch link) that links directly to MR with changes. Of course review and test.
https://git.drupalcode.org/project/openid_connect/-/merge_requests/82.diff
Closed MR - https://git.drupalcode.org/project/openid_connect/-/merge_requests/82
- 🇫🇷France mably
Problem still present in 3.0.0-alpha2, solution described in #23 seems to fix it.