Skip to content

fix(auth): audit limit over 500 gives 500, not 100 - #498

Merged
butschster merged 1 commit into
masterfrom
fix/audit-limit-clamp
Nov 22, 2026
Merged

butschster merged 1 commit into
masterfrom
fix/audit-limit-clamp

Conversation

@butschster

Copy link
Copy Markdown
Member

GET /api/audit?limit=600 returned 100 rows (the default) instead of the 500 maximum. Now: missing, zero, negative or not a number → 100; 1–500 as asked; over 500 → 500.

Checked: TestAuditLimit (600 stored rows; limit "", 0, 1, 500, 501, 600, -5, abc), go test ./internal/auth/ ./api/. OpenAPI describes the clamp.

Made with harnsy

@butschster butschster added the type: bug Something is broken or behaves incorrectly label Nov 22, 2026
@butschster
butschster merged commit a3314ec into master Nov 22, 2026
1 check passed
@butschster
butschster deleted the fix/audit-limit-clamp branch November 22, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something is broken or behaves incorrectly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant