Skip to content

pkg/schedule/schedulers: avoid panics on malformed scheduler config input #10449

@bufferflies

Description

@bufferflies

Development Task

The scheduler config and scheduler-related API paths under pkg/schedule/schedulers may panic or return inaccurate HTTP errors when receiving malformed or unexpected input.

Typical risky cases include:

  • unsafe type assertions on scheduler config fields parsed from JSON
  • unexpected scheduler type casts in transfer witness handling
  • incorrect HTTP status codes for invalid user input
  • nil-response handling gaps in scheduler API error paths

This task tracks hardening those code paths so that invalid input is rejected safely with clear client-facing errors instead of causing runtime panics or misleading 5xx responses.

Related work:

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-9.0This bug affects the 9.0.x versions.severity/minortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions