github / github/secure_headers

"Configuration already exists" error

オープン
#545 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Ruby
スター
3.2k
フォーク
253
平均マージ
19時間 11分
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, rails, ruby
領域
backend, devops, security
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。