github / github/secure_headers
"Configuration already exists" error
- 主要言語
- 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