bvandeusen
7c11cdc4d1
test-go / test (push) Successful in 28s
test-go / integration (push) Successful in 9m40s
fix(server): handleGetStream - auth check before DB lookup
...
TestRoutesRegisteredInMount failed because handleGetStream did the
DB lookup (404 on missing track) BEFORE streamAuthOk (401 on
unauth). For an unauth request to a non-existent track, the test
saw 404 and concluded the route wasn't registered when actually it
was - the handler just bailed at the lookup before auth.
Reorder: extract trackID via chi.URLParam, run streamAuthOk on the
raw path id first (the HMAC token is signed over the same id
string so we don't need the resolved row yet), then do the DB
lookup. Test now sees 401 on the unauth probe as it expected.
Also closes a small info-leak: previously a 404/401 differential
let unauth callers probe which track IDs exist. Now both unknown
and known IDs return 401 for unauth requests.
2026-06-03 13:43:28 -04:00
..
2026-05-17 21:05:36 -04:00
2026-05-07 20:10:18 -04:00
2026-06-02 18:11:25 -04:00
2026-05-07 20:10:18 -04:00
2026-05-07 07:59:40 -04:00
2026-05-07 20:10:18 -04:00
2026-05-16 18:41:21 -04:00
2026-05-16 18:41:21 -04:00
2026-05-07 12:01:16 -04:00
2026-05-08 10:46:43 -04:00
2026-05-17 20:22:30 -04:00
2026-05-08 23:07:15 -04:00
2026-05-08 10:40:03 -04:00
2026-05-12 21:28:05 -04:00
2026-05-18 12:24:20 -04:00
2026-05-12 20:55:33 -04:00
2026-05-06 22:59:23 -04:00
2026-05-07 20:10:18 -04:00
2026-05-04 20:13:31 -04:00
2026-05-07 20:10:18 -04:00
2026-05-07 12:43:44 -04:00
2026-05-08 10:18:35 -04:00
2026-05-08 10:40:03 -04:00
2026-05-08 10:46:43 -04:00
2026-05-17 20:22:30 -04:00
2026-05-08 08:17:35 -04:00
2026-06-03 11:46:57 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 21:33:14 -04:00
2026-05-07 11:56:19 -04:00
2026-05-13 11:58:24 -04:00
2026-05-07 12:49:30 -04:00
2026-05-07 21:33:14 -04:00
2026-05-08 10:40:03 -04:00
2026-05-07 20:25:26 -04:00
2026-06-03 11:46:57 -04:00
2026-06-03 11:46:57 -04:00
2026-05-10 20:28:27 -04:00
2026-05-10 20:28:27 -04:00
2026-04-21 23:02:20 -04:00
2026-05-04 17:41:16 -04:00
2026-05-07 19:48:25 -04:00
2026-05-07 19:48:25 -04:00
2026-05-12 21:28:05 -04:00
2026-05-12 20:44:37 -04:00
2026-05-08 11:29:36 -04:00
2026-05-15 11:14:21 -04:00
2026-05-13 20:41:44 -04:00
2026-05-13 20:41:44 -04:00
2026-05-01 18:00:59 -04:00
2026-05-07 20:48:20 -04:00
2026-04-28 09:27:06 -04:00
2026-05-09 22:47:25 -04:00
2026-05-10 18:47:30 -04:00
2026-05-10 18:47:30 -04:00
2026-05-10 18:47:30 -04:00
2026-06-03 13:30:36 -04:00
2026-05-15 21:37:29 -04:00
2026-04-29 17:35:45 -04:00
2026-05-07 21:19:35 -04:00
2026-05-08 10:40:03 -04:00
2026-05-13 14:27:23 -04:00
2026-04-28 09:27:06 -04:00
2026-05-08 08:26:43 -04:00
2026-05-04 07:05:49 -04:00
2026-05-08 08:44:50 -04:00
2026-05-07 12:38:48 -04:00
2026-05-08 08:44:50 -04:00
2026-05-07 12:38:48 -04:00
2026-05-08 08:44:50 -04:00
2026-05-04 18:13:13 -04:00
2026-05-08 08:44:50 -04:00
2026-06-02 18:24:23 -04:00
2026-05-17 20:22:30 -04:00
2026-05-13 11:58:24 -04:00
2026-05-07 12:38:48 -04:00
2026-05-08 08:26:43 -04:00
2026-06-02 18:24:23 -04:00
2026-05-04 15:21:24 -04:00
2026-06-03 13:43:28 -04:00
2026-06-02 11:25:50 -04:00
2026-05-15 13:21:09 -04:00
2026-05-17 20:22:30 -04:00
2026-05-08 10:40:03 -04:00
2026-05-15 13:33:52 -04:00
2026-05-17 20:22:30 -04:00
2026-04-30 20:19:39 -04:00
2026-05-12 21:28:05 -04:00
2026-05-08 11:05:25 -04:00
2026-05-08 08:43:36 -04:00
2026-05-08 12:05:35 -04:00
2026-05-12 20:55:33 -04:00
2026-05-07 22:18:40 -04:00
2026-05-07 21:28:20 -04:00
2026-04-21 08:29:28 -04:00
2026-05-08 10:46:43 -04:00
2026-06-03 11:34:02 -04:00
2026-06-03 13:41:54 -04:00
2026-05-01 06:23:08 -04:00
2026-05-16 20:16:56 -04:00
2026-05-13 20:41:44 -04:00