splitsec2
4f97fc9bec
fix: keep server paths and URLs out of an error response and a debug log ( #1558 )
...
Two small leaks from going through the open CodeQL alerts (code scanning
alerts 100 and 123).
The local download route returned `str(e)` on an OSError, and for a
missing or unreadable file that text is the file's path on the server
(`[Errno 2] No such file or directory:
'/audiobooks/Author/Title.epub'`). #1422 cuts a non-admin's download
path down to the file name everywhere else, so this put it back. The
route now answers "Could not read the file" and the detail stays in the
log.
`should_bypass_proxy` logged the whole request URL at debug when it
could not be parsed. URLs can carry credentials, so it logs only the
exception now.
Each change has a test that fails without it. The full non-e2e suite,
ruff and basedpyright pass.
2026-10-23 01:52:39 -06:00
..
2026-10-23 01:08:00 -06:00
2026-01-01 12:35:22 +00:00
2026-10-23 00:58:42 -06:00
2026-10-23 00:58:42 -06:00
2026-10-23 01:52:39 -06:00
2026-10-21 01:58:41 -04:00
2026-04-12 12:01:52 +01:00
2026-10-21 02:05:05 -04:00
2026-10-02 22:45:48 -04:00
2026-08-13 13:51:40 -04:00
2026-10-22 20:27:07 -04:00
2026-10-20 01:22:05 -04:00
2026-10-23 00:58:42 -06:00
2026-10-23 01:08:00 -06:00
2026-04-12 12:01:52 +01:00
2026-02-20 09:53:47 +00:00
2026-03-07 10:30:47 +00:00
2026-04-12 12:01:52 +01:00
2026-08-11 23:27:44 -04:00
2026-09-25 18:14:42 -04:00
2026-10-22 15:29:34 -04:00
2026-10-20 23:35:42 -04:00
2026-10-21 01:34:38 -04:00
2026-08-15 11:40:32 -04:00
2026-10-22 20:21:49 -04:00
2026-10-20 23:34:32 -04:00
2026-09-17 15:52:21 -04:00
2026-09-17 16:27:53 -04:00
2026-10-20 23:20:04 -04:00
2026-05-08 11:17:49 +01:00
2026-10-23 01:08:00 -06:00
2026-10-20 23:40:16 -04:00
2026-09-11 00:47:37 -04:00
2026-10-22 15:32:00 -04:00
2026-10-21 01:58:41 -04:00
2026-10-23 01:08:00 -06:00
2026-10-23 00:58:42 -06:00
2026-08-21 10:43:06 -04:00
2026-10-22 20:24:57 -04:00
2026-07-28 15:19:59 -04:00
2026-07-28 15:19:59 -04:00
2026-10-23 00:41:13 -06:00
2026-10-23 01:08:00 -06:00
2026-10-23 01:08:00 -06:00
2026-10-20 01:55:49 -04:00
2026-08-24 17:57:21 -04:00
2026-10-22 20:37:15 -04:00
2026-04-15 18:50:13 +01:00
2026-09-17 15:52:21 -04:00
2026-10-02 22:45:10 -04:00
2026-04-12 12:01:52 +01:00
2026-10-22 15:29:34 -04:00
2026-10-22 15:29:34 -04:00
2026-04-12 12:01:52 +01:00
2026-09-25 18:56:16 -04:00
2026-09-20 12:51:21 -04:00
2026-10-22 20:37:15 -04:00
2026-04-11 16:18:52 +01:00
2026-07-21 15:41:03 -04:00
2026-05-10 09:29:49 +01:00
2026-10-21 02:05:05 -04:00
2026-08-11 12:23:34 -04:00
2026-04-23 20:56:10 +01:00
2026-10-20 02:33:53 -04:00
2026-10-20 02:03:05 -04:00
2026-10-20 23:29:05 -04:00
2026-08-11 01:05:23 -04:00
2026-10-20 23:19:33 -04:00
2026-10-22 20:19:16 -04:00
2026-08-27 00:40:08 -04:00
2026-10-20 23:38:40 -04:00
2026-10-23 00:41:13 -06:00
2026-10-22 20:17:44 -04:00
2026-08-24 17:57:21 -04:00
2026-10-20 01:08:45 -04:00
2026-03-05 19:53:22 +00:00
2026-04-12 12:01:52 +01:00
2026-10-20 23:20:26 -04:00
2026-10-22 20:27:07 -04:00
2026-09-11 22:14:37 -04:00
2026-10-22 20:17:44 -04:00
2026-08-30 03:09:13 -04:00
2026-09-01 11:08:39 -04:00
2026-04-12 12:01:52 +01:00
2026-10-21 02:05:05 -04:00
2026-10-22 20:24:57 -04:00
2026-10-21 01:34:38 -04:00
2026-10-22 20:22:21 -04:00
2026-10-20 23:20:04 -04:00
2026-10-02 22:45:48 -04:00
2026-10-23 00:41:13 -06:00
2026-10-22 20:27:07 -04:00
2026-02-11 17:44:27 +00:00
2026-06-15 00:28:43 -04:00
2026-10-22 20:26:47 -04:00
2026-04-10 13:03:25 +01:00