Skip to content

Fix/sql schema exception handling#777

Closed
odaysec wants to merge 1 commit intomicrosoft:Developmentfrom
odaysec:fix/sql-schema-exception-handling
Closed

Fix/sql schema exception handling#777
odaysec wants to merge 1 commit intomicrosoft:Developmentfrom
odaysec:fix/sql-schema-exception-handling

Conversation

@odaysec
Copy link
Copy Markdown
Contributor

@odaysec odaysec commented Mar 6, 2026

Closes/supersedes #726

Changes:

  • Consolidated exception handling into single except block
  • Moved unreachable schema-building code back into try block
  • Sanitized user-facing error messages (removed str(e) to prevent info leakage)
  • Replaced print() with debug_print() for admin-controlled console output
  • Detailed exception info preserved in logs via log_event()

…l_schema_plugin

- Remove duplicate/unreachable except blocks
- Move schema-building logic back into try block
- Replace str(e) in user-facing response with generic message
- Use debug_print() instead of print() for admin-controlled output
- Keep detailed exception info in logs via log_event()
@odaysec odaysec changed the base branch from main to Development March 6, 2026 05:00
@paullizer paullizer self-requested a review March 16, 2026 19:18
Copy link
Copy Markdown
Contributor

@paullizer paullizer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate noticing an improvement in our plugin. We rearchitected the plugin though and this request is no longer needed. I would appreciate your insight in the rest of our code.

@paullizer paullizer closed this Mar 23, 2026
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.

2 participants