- GET /api/v1/users/{id} returns email and phone only to the user themself
and to admins.
- When a user changes their own login, the PUT response carries a new token
pair (login is the JWT subject, so the old tokens stop matching); old
refresh tokens fail on their own because the stored login differs.
- The old avatar is deleted only after the profile is saved; login length is
checked against the column size.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ReFoundApplicationTests runs on PostgreSQL via Testcontainers with a test
profile holding test-only JWT/Redis/MinIO values; it previously failed
without JWT_SECRET. The test also checks Liquibase + ddl validate.
- Unit tests: JWT access/refresh separation, refresh rotation, admin
authority, exception mapping, image signature checks, ad media Range
responses, post deletion after commit, moderation races, campaign status,
ad selection without HttpSession and with Redis down, target URL rules.
- resolveRange rejects ranges that start past the end of the file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>