Illegal choice 0 in Configure element.

Created on 31 July 2020, over 4 years ago
Updated 28 July 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

1) Install and go here: /admin/config/system/seckit
2) Try to save configuration
3) You will get an error saying "An illegal choice has been detected. Please contact the site administrator."
4) X-XSS-PROTECTION HEADER dropdown box is marked as red.
5) I have attached the screenshot here: illegal-choice-detected.png

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇮🇳India vijay.mayilsamy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom mcdruid 🇬🇧🇪🇺

    I don't understand how the tests would not catch this?

    I don't think the patch is the appropriate fix, although I'm not quite sure how we ended up passing defaults to $config->get() .. I suppose this is a hangover from a D7 port of variable_get() perhaps?

    The existing code is definitely wrong, but let's pursue the fix in 🐛 No values in X-XSS-Protection Header select box Fixed .

    As such, I'm going to close this as a duplicate (I'll try to carry credit across).

Production build 0.71.5 2024