Skip to content

Sanitize policy-aware list server errors - #49

Merged
pcfreak30 merged 1 commit into
developfrom
fix/policy-list-server-error
Nov 10, 2026
Merged

pcfreak30 merged 1 commit into
developfrom
fix/policy-list-server-error

Conversation

@pcfreak30

@pcfreak30 pcfreak30 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Return a generic HTTP 500 body from ProcessListRequestWithPolicy instead of echoing the service error, while preserving the original error return for caller-side logging.
  • Keep legacy ProcessListRequest response behavior unchanged to avoid a compatibility change.
  • Cover both behaviors with HTTP response tests using a SQL-like service error.

Verification

  • go test ./... -skip '^TestGetOperatorMap$' -count=1
  • go vet ./...
  • Full local suite includes an unrelated untracked dialect test with stale expectations; it is not part of this PR.

Summary

  • Return a generic HTTP 500 response for unexpected service errors in policy-aware list requests, preventing internal error details from being exposed to clients.
  • Preserve the original error for callers to log and retain the existing response behavior for legacy list requests.
  • Add tests covering both policy-aware and legacy error responses.

@kody-ai

kody-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@pcfreak30
pcfreak30 merged commit 6ae2870 into develop Nov 10, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

Code Coverage Report

Total Coverage: 88.9%

Generated from commit: d03a808
Repository: LumeWeb/queryutil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant