Skip to content

Remove source locations from the errors of torrust-tracker-core #2916

Closed

Description

@josecelano-bot

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

  1. added 2 commits that reference this issue on Nov 18, 2026
  2. added 8 commits that reference this issue on Nov 21, 2026
  3. added 6 commits that reference this issue on Nov 22, 2026
  4. added 2 commits that reference this issue on Nov 23, 2026
  5. added a commit that references this issue on Nov 23, 2026
  6. added a commit that references this issue on Nov 23, 2026
  7. added 2 commits that reference this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions