Commit 69cb3be
fix: sanitize internal error details in global 500 handler
The catch-all exception handler was returning str(exc) directly in the
API response, leaking internal filesystem paths, backend error messages,
and configuration details to clients (information disclosure).
- Replace str(exc) with a static "Internal server error" message
- Upgrade logger.warning to logger.exception so the full traceback is
preserved in server logs for debugging
Closes #12331 parent b174deb commit 69cb3be
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments