- Issue created by @jmarkel
- Merge request !86Issue #3375886: Warning: Undefined array key "iss_allowed_domains" β (Closed) created by Unnamed author
- last update
over 1 year ago 100 pass - Status changed to RTBC
over 1 year ago 2:29pm 27 July 2023 - π¨π¦Canada joseph.olstad
Yes I need this also , running PHP 8.1 with the 3x branch.
- π·π΄Romania bbu23
In 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.
- π¨π¦Canada 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 didn't look at the code and is totally out of context.
- π·π΄Romania 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.
I agree with her. Not spam, and definitely something that could be fixed with an update hook. It's completely relevant.
- Status changed to Needs work
over 1 year ago 10:36pm 18 October 2023 - π΅πΉPortugal jcnventura
Indeed, let's fix this better with a hook_update..
- π¨π¦Canada joseph.olstad
Sorry @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.0.x version of openid_connect in Drupal 10,
- last update
over 1 year ago 100 pass - First commit to issue fork.
- Merge request !143To avoid the warning "Undefined array key "iss_allowed_domains" after converting β (Open) created by DresseDk
As 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".
- First commit to issue fork.
- πΊπΈUnited States pfrilling Minster, OH
I 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.