diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-19 00:15:48 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-19 00:15:48 +0300 |
| commit | 084848864d78012d801fba85b5827206d5eccac5 (patch) | |
| tree | a650c71aa2ee411c0a665272331fcaee45ea87ab /Dockerfile.flutter-ci | |
| parent | 04f18d339d6ed189082a7d7a3ed9ebd5401f82a4 (diff) | |
Fix RevokeShare 500 on unknown token; add S14 rescan + S15 auth boundary scenarios
Bug fix: shareService.RevokeShare returned errors.New("share not found")
instead of the sentinel ErrShareNotFound, so handleError fell through to
HTTP 500 instead of 404 for DELETE /api/v1/shares/{unknown-token}. The
sister method ValidateShareToken already used the sentinel; this aligns
them. Verified with curl: DELETE on a missing token now returns 404.
The bug surfaced while drafting S15 (auth-boundary negative tests),
which exercises 401 unauthenticated, 403 non-admin → admin routes, and
404 unknown resources. S14 covers admin rescan + scan-progress polling.
All 15 LLM e2e scenarios pass against the fixed server.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'Dockerfile.flutter-ci')
0 files changed, 0 insertions, 0 deletions
