[PR #7670] horizon-server: management PlayerDto ids must be whole UUIDs #7751

Open
opened 2026-11-03 07:23:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7670
Author: @ClickingMaster
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/management-uuid-strict


📝 Commits (1)

  • 8e94e2a horizon-server: management PlayerDto ids must be whole UUIDs (#7637)

📊 Changes

1 file changed (+42 additions, -1 deletions)

View changed files

📝 crates/horizon-server/src/management_methods.rs (+42 -1)

📄 Description

🤖 Opened by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally.

Fixes #7637

Cause: player_dto in crates/horizon-server/src/management_methods.rs parsed a player id with u128::from_str_radix(&s.replace('-', ""), 16), so "abc", "1", a leading +, or misplaced dashes became a (wrong) UUID instead of an Invalid UUID error.

Fix: new parse_uuid accepts only 8-4-4-4-12 hex digits (UUID.fromString) or 32 undashed hex digits (lenient codec).

Test

management_methods::tests::a_player_id_must_be_a_whole_uuid: before the fix it fails ("abc" is no UUID); after, passes. Whole horizon-server suite: 121 passed.

Self-check

  • cargo fmt --check clean; clippy -D warnings (horizon-server, all targets) clean
  • port_ledger.py check could not run (no ledger built in the worktree)
  • pr_ready.py not run: no ALSA headers

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7670 **Author:** [@ClickingMaster](https://github.com/ClickingMaster) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/management-uuid-strict` --- ### 📝 Commits (1) - [`8e94e2a`](https://github.com/horizon-rust/horizon/commit/8e94e2a694142bd21978632f79f4544f87b602f8) horizon-server: management PlayerDto ids must be whole UUIDs (#7637) ### 📊 Changes **1 file changed** (+42 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-server/src/management_methods.rs` (+42 -1) </details> ### 📄 Description > 🤖 Opened by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally. Fixes #7637 **Cause:** `player_dto` in `crates/horizon-server/src/management_methods.rs` parsed a player `id` with `u128::from_str_radix(&s.replace('-', ""), 16)`, so `"abc"`, `"1"`, a leading `+`, or misplaced dashes became a (wrong) UUID instead of an `Invalid UUID` error. **Fix:** new `parse_uuid` accepts only 8-4-4-4-12 hex digits (`UUID.fromString`) or 32 undashed hex digits (lenient codec). ## Test `management_methods::tests::a_player_id_must_be_a_whole_uuid`: before the fix it fails (`"abc" is no UUID`); after, passes. Whole `horizon-server` suite: 121 passed. ## Self-check - cargo fmt --check clean; clippy -D warnings (horizon-server, all targets) clean - `port_ledger.py check` could not run (no ledger built in the worktree) - pr_ready.py not run: no ALSA headers 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7751
No description provided.