Files
rehearshalhub/watcher
Steffen Schuhmann 5536bf4394 fix: watcher path normalization, subject filter, and debug logging
Two filter bugs caused every activity to be silently dropped:

1. Path format: Nextcloud activity API returns paths as
   /username/files/bands/... but is_band_audio_path() was checking
   parts[0] == "bands" after strip("/"), getting "username" instead.
   Fix: normalize_nc_path() strips the /username/files/ and DAV prefixes
   before any path checks are applied.

2. Subject names: filter was checking for "file_created"/"file_changed"
   but Nextcloud uses "created_by"/"changed_by"/"created_self"/etc.
   Fix: expanded _UPLOAD_SUBJECTS to cover all known NC activity subjects.

3. Expose NextcloudWatcherClient.username so normalize_nc_path() can
   construct the correct prefix for the configured user.

4. Set watcher log level to DEBUG with per-activity skip reasons logged,
   so the next filter edge case is immediately diagnosable. httpx/httpcore
   kept at INFO/WARNING to avoid flooding the output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 22:12:56 +01:00
..
2026-03-28 21:53:03 +01:00
2026-03-28 21:53:03 +01:00