sentry-rails: excluded_exceptions triggers a Rails deprecation warning for ActionController::InvalidAuthenticityToken
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Grep gem sentry-rails để tìm Sentry::Rails::IGNORE_DEFAULT nhằm tìm danh sách loại trừ mặc định, sau đó đọc Sentry::Configuration#excluded_exception_classes, thứ phân giải từng tên qua Object.const_get. Thay đổi là ngừng liệt kê ActionController::InvalidAuthenticityToken khi ActionController::InvalidCrossOriginRequest đã có mặt và được định nghĩa, để hằng số đã lỗi thời không bao giờ được phân giải. Hoàn thành nghĩa là bắt được một exception dưới Rails main mà không có DEPRECATION WARNING, cộng với các spec cấu hình hiện có vẫn pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Ruby
- Star
- 990
- Fork
- 553
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-ruby
-
Shorter rate limit in the same header replaces a longer oneCó thể đã có người làm @sentry-junior đã nhận 5 ngày trước. Đang mởBug Ruby
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-ruby#3211 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Events dropped client-side for size are only logged at debug level and not recorded as lostCó thể đã có người làm @sentry-junior đã nhận 5 ngày trước. Đang mởBug Junior: repro Ruby
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-ruby#3209 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Ship fewer files with the gemsCó thể đã có người làm @solnic đã nhận 1 ngày trước. Đang mởImprovement Ruby Waiting for: Product Owner
getsentry/sentry-ruby#3223 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
active_job breaking change Next Major sentry-delayed_job sentry-rails sentry-resque sentry-sidekiq
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getsentry/sentry-ruby#3222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature Ruby Waiting for: Product Owner
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
getsentry/sentry-ruby#3217 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-ruby
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
開発用DockerイメージにPlaywrightのシステム依存を追加するCó thể đã có người làm @momocus đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
sakazuki-org/sakazuki#1453 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jenkins-infra/jenkins.io#9615 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày