Skip to content

Dashboard search/decoding and event, webhook, cron, alerting, config fixes #114

Closed

Description

@CodingAnarchy

Found in the post-2.4.0 bug hunt (library features + dashboard).

Dashboard:

  1. Queue path params aren't percent-decoded (api/queues.rs ~185): Pause on email jobs pauses email%20jobs. Decode (400 on invalid UTF-8) for all queue routes.
  2. search_jobs_handler (api/jobs.rs ~760) reads only collect_jobs; can't find Failed/TimedOut/Completed/Running/future jobs. Use jobs_with_status like list_jobs_handler.
  3. metrics_endpoint: "/metrics" advertised with no such route; get_* helpers always None (system.rs ~376, ~536). Remove.

Library:
4. Dropped EventSubscription never unregisters (events.rs ~677), and webhook/stream shutdown never unsubscribe → map grows, stats overcount, payload_wanted() stuck true. Add Drop-based unregister and unsubscribe on shutdown.
5. Webhook stats count attempts, not deliveries (webhooks.rs ~1255): success on 3rd attempt = 2 failed deliveries, 33%. Count final outcomes; keep an attempts counter.
6. Deserialized CronSchedule never fires (#[serde(skip)] schedule/tz, cron.rs:19). Rebuild on deserialize (try_from).
7. Processing-time filter (events.rs ~362) passes events with no processing time when a bound is set. Reject them.
8. Alert cooldown race (alerting.rs ~674): check under read lock, send later → duplicates. Reserve under the write lock.
9. HammerworkConfig::save_to_file writes secrets with default perms (config.rs:381) → 0600 temp+rename. from_file doesn't validate [encryption].
10. Streaming Hash partitioner sums chars (streaming.rs ~2026): collisions and debug overflow panic. Use a stable hash (e.g. FNV-1a inline).

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