Trailing char in yml file breaks installation

Created on 9 July 2024, 9 months ago
Updated 23 July 2024, 9 months ago

Problem/Motivation

When installing the module the following message is displayed:

In FileStorage.php line 118:
                                                                                                                                                                                                                                                                                                                 
  Invalid data type in config http_response_headers.response_header.public_key_pins, found in file modules/contrib/http_response_headers/config/optional/http_response_headers.response_header.public_key_pins.yml: Unexpected characters near "s" at line 6 (near "description: 'HTTP Public Key Pinning (HPKP  
  ) is a security feature that tells a web client to associate a specific cryptographic public key with a certain web server to prevent Man in the Middle (MITM) attacks with forged certificates.'s").                                                                                                          
                                                                                                                                                                                                                                                                                                                 

Failed to run drush en http_response_headers: exit status 1

The problem is config/optional/http_response_headers.response_header.public_key_pins.yml, it has a trailing char (see the 's' at the end):

description: 'HTTP Public Key Pinning (HPKP) is a security feature that tells a web client to associate a specific cryptographic public key with a certain web server to prevent Man in the Middle (MITM) attacks with forged certificates.'s

Steps to reproduce

Install the module

Proposed resolution

Remove the trailing char.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain tunic Madrid

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024