EPIC: Remove source locations from errors
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
Start with docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md and the audit record in docs/issues/open/2804-location-caller-track-caller-audit/. The work is divided into seven ordered sub-issues, and the maintainer requires one session at a time with approval to start each; SI-1 must precede code changes. For any assigned sub-issue, follow its scope and verify its stated outcome; the epic's overall goal is to remove source locations from errors and add a repository check.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
No error in the workspace records or prints a source location. Error types have no location field, the workspace does not use torrust-located-error, and no text sent to an HTTP, UDP or REST client, an event consumer or an operator holds a source file path. A repository check keeps it so.
Why
The audit of #2804 shows that the recorded location is wrong by construction: none of the 38 production Location::caller() sites of the audit (37 since #2850) is in a #[track_caller] function, and #[track_caller] cannot fix them, because they are reached through str::parse, try_into, closures or async code. The value still reaches clients: 23 Display formats print it, and LocatedError prints its own. It appears in the HTTP tracker failure reason, UDP error messages, REST API errors, event payloads and logs. It was reported as a security concern in #384, it lets an attacker infer the running version, it couples client-visible messages to the code layout, and it costs public API (24 public enum variants). Developers keep file and line on the server through tracing events.
Maintainer decisions (2026-11-17)
- Remove the field entirely (option 4 of the #2804 analysis), with messages that name what failed. Stripping it from
Displayonly was rejected. - #384 keeps its title and becomes the final sub-issue (client-side recheck).
- One sub-issue session at a time, each started after the maintainer's go.
- No parent EPIC.
Sub-issues (in order)
- SI-1: ADR "Errors do not record source locations" and the
handle-errors-in-codeskill update. Goes first; no code before it. - SI-2:
torrust-tracker-primitives(includes thePeerRoleparse finding). Before theprimitives4.0.0 publish. - SI-3: HTTP tracker request errors (
http-protocol,axum-http-serverextractors). Largest client-visible exposure. - SI-4:
torrust-tracker-coreerrors and their consumers. - SI-5:
configuration, TLS (axum-server) andudp-servererrors. Before theconfiguration4.0.0 publish. - SI-6: drop
torrust-located-errorfrom the workspace, add a repository check, and draft the upstream issues fortorrust-info-hashandtorrust-located-error. - #384: client-side verification on a running tracker, then close.
Specification
docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md (added by the spec-only PR). Audit record: docs/issues/open/2804-location-caller-track-caller-audit/.
Related: #2804, #384, #2583 (first publish of the workspace crates), #1347.
- Ngôn ngữ chính
- Rust
- Star
- 532
- Fork
- 56
- Merge trung bình
- 11 giờ 20 phút
- Pull request đã merge (30 ngày)
- 282
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 torrust/torrust-tracker
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
torrust/torrust-tracker#3080 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
torrust/torrust-tracker#3069 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
torrust/torrust-tracker#3058 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
torrust/torrust-tracker#2978 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
torrust/torrust-tracker#2332 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của torrust/torrust-tracker
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Start here: how to contributeĐang mởdifficulty: easy docs help wanted tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
userFRM/egui-charts#4386 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eliasstravik/herdr-projects#1605 · 1 bình luận ·