sentry-rails: excluded_exceptions triggers a Rails deprecation warning for ActionController::InvalidAuthenticityToken
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
sentry-rails gem 内で Sentry::Rails::IGNORE_DEFAULT を grep してデフォルトの除外リストを見つけ、次に Sentry::Configuration#excluded_exception_classes を読む。これは各名前を Object.const_get 経由で解決する。変更内容は、ActionController::InvalidCrossOriginRequest がすでに存在して定義されている場合に ActionController::InvalidAuthenticityToken を列挙しないようにし、非推奨の定数が決して解決されないようにすることだ。完了とは、Rails main 上で DEPRECATION WARNING なしで例外を捕捉できること、さらに既存の configuration specs が引き続きパスすることである。
索引モデルが issue の本文から書いたものです。
説明
Rails main (8.2) deprecates ActionController::InvalidAuthenticityToken in favour of ActionController::InvalidCrossOriginRequest (release notes). The old name is now a deprecated constant that warns when it is resolved.
Sentry::Rails::IGNORE_DEFAULT still lists "ActionController::InvalidAuthenticityToken", and Sentry::Configuration#excluded_exception_classes resolves every name with Object.const_get. So the first exception that Sentry captures in each process prints:
DEPRECATION WARNING: ActionController::InvalidAuthenticityToken has been deprecated and will be removed in Rails 9.0. Use ActionController::InvalidCrossOriginRequest instead.
Versions: sentry-ruby / sentry-rails 7.2.0 (7.3.0 has the same list), Rails main.
Suggested fix: leave "ActionController::InvalidAuthenticityToken" out of the default list when ActionController::InvalidCrossOriginRequest is defined, because the list already holds that name and the old name refers to the same class.
Workaround:
Sentry::Configuration.after(:initialize) do
excluded_exceptions.delete("ActionController::InvalidAuthenticityToken")
end
- 主要言語
- Ruby
- スター
- 990
- フォーク
- 553
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 31
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-ruby のほかの issue
-
Shorter rate limit in the same header replaces a longer one対応中かも @sentry-junior が 5 日前に担当しました。 オープンBug Ruby
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-ruby#3211 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Events dropped client-side for size are only logged at debug level and not recorded as lost対応中かも @sentry-junior が 5 日前に担当しました。 オープンBug Junior: repro Ruby
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-ruby#3209 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Ship fewer files with the gems対応中かも @solnic が 1 日前に担当しました。 オープンImprovement Ruby Waiting for: Product Owner
getsentry/sentry-ruby#3223 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
active_job breaking change Next Major sentry-delayed_job sentry-rails sentry-resque sentry-sidekiq
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
getsentry/sentry-ruby#3222 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Feature Ruby Waiting for: Product Owner
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
getsentry/sentry-ruby#3217 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-ruby の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
開発用DockerイメージにPlaywrightのシステム依存を追加する対応中かも @momocus が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sakazuki-org/sakazuki#1453 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jenkins-infra/jenkins.io#9615 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtime対応中かも @Goldziher が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信