github / github/secure_headers
"Configuration already exists" error
- Langage dominant
- Ruby
- Étoiles
- 3.2k
- Forks
- 253
- Merge moyen
- 19 h 11 min
- PR mergées (30 j)
- 1
Description
I have a dockerized rails application and every time i change from a branch into another, I receive:
```
2025-02-05 10:43:33.634438 F [48:puma srv tp 001 reporting.rb:38] [[]] Rails -- Exception: SecureHeaders::Configuration::AlreadyConfiguredError: Configuration already exists
app.1 | /opt/bundle/ruby/2.7.0/gems/secure_headers-6.5.0/lib/secure_headers/configuration.rb:47:in `override'
10:43:33 app.1 | /app/app/controllers/application_controller.rb:47:in `'
```
To fix it I have to restart the docker container which is awkward.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start with secure_headers-6.5.0/lib/secure_headers/configuration.rb at line 47 and the configuration call in app/controllers/application_controller.rb at line 47. Reproduce the branch switch in the dockerized Rails application and trace why the configuration is treated as already present; done means switching branches no longer requires restarting the container.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- docker, rails, ruby
- Domaine
- backend, devops, security
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100