summaryrefslogtreecommitdiff
path: root/Dockerfile.flutter-ci
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-19 00:25:06 +0300
committerPaul Buetow <paul@buetow.org>2026-05-19 00:25:06 +0300
commit13e97b48d4de2ed7007a9530ed3a4b42b631ce35 (patch)
tree047ff0b14be3269b0ec2e33c31d4920712ecf63d /Dockerfile.flutter-ci
parent084848864d78012d801fba85b5827206d5eccac5 (diff)
Map service errors to correct HTTP status codes (was 500)
Three more handlers had the same pattern as the RevokeShare bug fixed in 0848488: the service returned a plain errors.New(...) for an expected condition, so handleError fell through to its default 500 branch instead of mapping to 404/400. - browse.GetThumbnail → ErrNotFound (404 instead of 500) when the media row has no thumbnail path. - tag.RemoveTag → ErrNotFound (404 instead of 500) when the tag name does not exist. DELETE /media/{id}/tags/{unknown} now returns 404. - write.RegenerateSetCover → new sentinel ErrEmptySetForCover, mapped to 400 in handleError, when the target set contains no media files eligible to be promoted to a cover. S15 (auth-boundary negatives) is tightened: the share-revoke step used to accept {404, 500} as a workaround for the bug; it now requires 404. A new section C2 locks in the three regressions above so they cannot silently return 500 again. Verified end-to-end via curl: DELETE /media/{id}/tags/unknown → 404, DELETE /shares/unknown-token → 404. Full LLM e2e suite 15/15 still passes against the rebuilt server. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'Dockerfile.flutter-ci')
0 files changed, 0 insertions, 0 deletions