Closed (fixed)
Project:
OpenID Connect / OAuth client
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2023 at 14:11 UTC
Updated:
5 Jun 2025 at 16:04 UTC
Jump to comment: Most recent
Comments
Comment #3
jcnventuraComment #4
joseph.olstadYes I need this also , running PHP 8.1 with the 3x branch.
Comment #5
solideogloria commentedComment #6
bbu23In my opinion, this is a mistake at the update_Ns level where the existing configuration does not get this key set. For new configuration entities, the key will always be there. The code is supposed to work for all cases, so if no update hook is provided to fix this, I'd rather just resave the existing converted configuration and that will fix the warning.
Comment #7
joseph.olstad@bbu23 , sorry but it looks like your account has been hacked, so I marked your comment as spam. I don't usually do this but your comment shows that you most likely didn't look at the code in the merge request and your last comment is totally out of context.
Comment #8
bbu23@joseph.olstad I don't appreciate that accusation and your answer. I most definitely checked the MR, locally tested and I am very confident that the change is not necessary. The "iss_allowed_domains" setting is added later to the base configuration and all existing config entities are affected by that until they are saved once. This is because no update_N hooks are covering it. A configuration form like that is not supposed to have an isset scenario because the default values exist in the schema. This change is still unnecessary in my opinion. Plus that MR covers only the form. The rest of the code is supposed to get that as an empty string anyways if nothing special is set.
And marking my comment as spam just because you disagree or don't understand my point is bm and uncalled for.
Comment #9
solideogloria commentedI agree with her. Not spam, and definitely something that could be fixed with an update hook. It's completely relevant.
Comment #10
jcnventuraIndeed, let's fix this better with a hook_update..
Comment #11
joseph.olstadSorry @bbu23, my mistake, I seriously thought you were some chat GPT bot but I see that you are real.
I've come accross this situation again with the 3.x version of openid_connect in Drupal 10,
Comment #12
solideogloria commentedMR needs to be changed to use hook_update_N
Comment #15
dressedk commentedAs suggested by others in this thread, I have created a new issue fork and added a new hook_update_N for adding the missing "iss_allowed_domains".
Comment #16
dressedk commentedComment #19
pfrillingI closed MR #86 in favor of MR #143. I added an update test to confirm the changes. If someone wants to review and mark this RTBC, I'll get it merged.
Comment #20
pfrillingI'm marking this needs work to fix the update hook as it conflicts with the update hook introduced in #3375886: Warning: Undefined array key "iss_allowed_domains".
Comment #21
pfrillingThe rebase has been completed. Marking this needs review.
Comment #22
solideogloria commentedLooks good to me.
Comment #23
pfrillingThanks everyone! The merge train has begun.