You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove source locations from the errors of torrust-tracker-core #2916
Part of EPIC #2912. SI-4, order 4 of 7. After SI-1 and SI-3. Largest diff.
Goal
Remove the location fields, the LocatedError sources and their text from the errors of packages/tracker-core, and update the packages that build or format them, so that no UDP error message, REST API error text, HTTP failure reason or event payload produced from a tracker-core error holds a source path.
Background
7 variants print {location} (WhitelistError::TorrentNotWhitelisted, the database InsertFailed/UpdateFailed/DeleteFailed, and the authentication key errors), and databases::error::Error and PeerKeyError carry LocatedError sources. The text reaches UDP clients, HTTP clients, REST API clients and event consumers (audit of #2804).
Scope
Remove location from the 7 variants and every site that builds them, including http-core.
Replace the LocatedError sources with plain sources; remove the Located(..).into() calls and the location capture of the conversions.
Remove torrust-located-error from packages/tracker-core/Cargo.toml.
Add tracing events at driver sites where the line was the only way to tell failures apart.
Update http-core, udp-core, udp-server and rest-api-runtime-adapter so the workspace compiles and the tests pass; decide with evidence whether the unused UpdateFailed stays.
Specification
docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md (added by the spec-only PR of #2912).
Activity
Merge #2919: docs(issues): [#2912] add the specifications of the EPIC…
Merge #2968: fix(http-protocol): [#2915] remove source locations from…
docs(tracker-core): [torrust#2916] describe the key verification outc…
docs(pr-reviews): [torrust#2916] add the review audit of PR torrust#2991
docs(pr-reviews): [torrust#2916] record the replies and resolved thre…
docs(axum-rest-api-server): [torrust#2916] show the delete-key error …
test(tracker-core): [torrust#2916] check only the prefix of the unreg…
docs(issues): [torrust#2916] record the red-run commands and the red …
docs(pr-reviews): [torrust#2916] record round 2 of the review audit o…
docs(pr-reviews): [torrust#2916] record the replies and resolved thre…
test(tracker-core): [#2916] add red tests that tracker-core error tex…
fix(tracker-core): [#2916] remove source locations from whitelist and…
fix(tracker-core): [#2916] remove source locations from database errors
fix(tracker-core): [#2916] replace LocatedError sources of peer key e…
docs(axum-http-server): [#2916] show the tracker-core authentication …
docs(issues): [#2916] record the reproduction, red and green runs and…
Merge torrust/develop into 2993-secrets-and-client-error-text-spec (r…
docs(issues): [torrust#2993] refresh the inventory after SI-4 of EPIC t…
chore(issues): archive closed issue #2916 spec to docs/issues/closed
Merge #2997: chore(issues): archive closed issue #2916 spec to docs/i…
Merge torrust#2991: fix(tracker-core): [torrust#2916] remove source l…
docs(issues): [torrust#2902] refresh the line numbers of the plans af…
test(tracker-core): [#2902] adapt the tracker core error table to err…
Merge #3009: test(tracker-core): [#2902] cover the SQLite persistence…