Problem/Motivation

Hello, I am having an issue when trying to update any configuration. Anytime I change anything, I get an error that says:

"'auto' is not a supported key."

If I disable all directives that have an *auto next to the time (and thus has an Auto Sources box) this error goes away. For example,. the script-src directive.

It seems that this textarea field is causing issues.

Steps to reproduce

Enable CSP module

Open Configuration

Verify that some of the *auto labelled directives are there, and there are Auto Sources.

Try to make any change and save.

For reference, I also have the Security Kit module enabled. I'm not sure if this would be causing some issues also.

Comments

michael.garrido created an issue. See original summary.

anawillem’s picture

I am having the same issue. And also have the Security Review module installed.

mvnovick’s picture

I am also having the same issue, but I do not have the Security Review module installed.

jrearick’s picture

I'm getting the same.

I wonder if it's a regression in the 2.2.x release. There was a lot of config validation work done.

I downgraded to 2.2.0-rc1, but that seems to be a duplicate tag of 2.2.0.

Downgrading to 2.1.1 seems to have worked.

  • gapple committed a64ff168 on 2.x
    Issue #3498591: Auto sources in config form preventing config changes
    
gapple’s picture

Priority: Normal » Major
Status: Active » Fixed

Thank you for the bug report.

The disabled field value was still in the form data and getting set to config when it shouldn't have been. 2.2.1 is now available with a fix 🙂.

----

SecKit and CSP are fine to work together, as long as the CSP setting in SecKit are not used since one module would overwrite the other's header value. (CSP will add a warning to the site status if it detects Seckit's CSP fields are enabled).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.