sonda/internal/api/http
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi eb23ee426a fix(library): make the libraries upgrade and validation robust
- fix(migration): roots that differ only in case (/Music and /music are two
  directories on Linux) used to make migration 0005 fail on the unique name;
  the later ones now get a numeric suffix
- feat(library): at startup, log a warning for every library whose directory
  cannot be read or that overlaps another, because migrated rows skip
  validation and may still hold roots that were removed from the old config
- fix(library): creating or updating a library is now serialised, so two
  concurrent requests cannot both pass the overlap check
- fix(library): changing a library's directory or deleting it is refused with
  409 scan_running while a scan runs; the scan works from the list it started
  with and would write under a stale path
- fix(library): library names clash ignoring case and accents the same way on
  SQLite and PostgreSQL, checked in Go
- fix(library): changing only the path no longer revalidates an untouched
  name, which can be longer than the limit after a migration
- test: roots differing in case on both databases; concurrent creates with a
  slow store, verified to fail without the lock; the busy guard; Problems
2026-11-11 13:34:44 +01:00
..
api_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
auth_test.go fix(streaming): open files through os.Root and tighten token parsing 2026-11-11 13:00:17 +01:00
errors.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
handlers_auth.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
handlers_libraries.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
handlers_library.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
handlers_listen.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
handlers_stream.go feat(streaming): stream tracks with HTTP Range support 2026-11-11 12:56:20 +01:00
handlers_users.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
libraries_test.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
library_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
middleware.go fix(streaming): open files through os.Root and tighten token parsing 2026-11-11 13:00:17 +01:00
router.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
stream_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00