missing config_export annotation in entity ResponseHeader

Created on 30 June 2022, almost 2 years ago
Updated 4 August 2023, 11 months ago

Problem/Motivation

After installing a fresh new site with drush si i wanted to import existing config with drush cim.

I've the following errors about a missing annotation "config_export" in the entity ResponseHeader definition.

[error]  Drupal\Core\Config\ConfigException: Errors occurred during import in Drush\Drupal\Commands\config\ConfigImportCommands->doImport() (line 346 of /srv/www/htdocs/nfs/preprod.ehess.dev/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php). 

In ConfigImportCommands.php line 360:
                                                                                                                                                                                                          
  The import failed due to the following reasons:                                                                                                                                                         
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.access_control_allow_origin : Entity type 'Drupal\http_response_headers\Entity\Respons  
  eHeader' is missing 'config_export' definition in its annotation                                                                                                                         
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.cache_control : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader'   
  is missing 'config_export' definition in its annotation                                                                                                                                       
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.content_security_policy : Entity type 'Drupal\http_response_headers\Entity\ResponseHea  
  der' is missing 'config_export' definition in its annotation                                                                                                                             
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.public_key_pins : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader&#039  
  ; is missing 'config_export' definition in its annotation                                                                                                                                     
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.referrer_policy : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader&#039  
  ; is missing 'config_export' definition in its annotation                                                                                                                                     
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.strict_transport_security : Entity type 'Drupal\http_response_headers\Entity\ResponseH  
  eader' is missing 'config_export' definition in its annotation                                                                                                                           
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.x_content_type_options : Entity type 'Drupal\http_response_headers\Entity\ResponseHead  
  er' is missing 'config_export' definition in its annotation                                                                                                                              
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.x_frame_options : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader&#039  
  ; is missing 'config_export' definition in its annotation                                                                                                                                     
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.x_generator : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader' is  
   missing 'config_export' definition in its annotation                                                                                                                                         
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.x_powered_by : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader' i  
  s missing 'config_export' definition in its annotation                                                                                                                                        
  Erreur inattendue lors de l'importation avec l'opération create pour http_response_headers.response_header.x_xss_protection : Entity type 'Drupal\http_response_headers\Entity\ResponseHeader&#03  
  9; is missing 'config_export' definition in its annotation                                                                                                                                    
                                                                                                                                                                                                          
🐛 Bug report
Status

Closed: won't fix

Component

Code

Created by

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.

Production build 0.69.0 2024