-
Notifications
You must be signed in to change notification settings - Fork 8
add event processor to server #822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📜 Docstring Coverage ReportRESULT: PASSED (minimum: 30.0%, actual: 76.1%) Detailed Coverage Report |
📦 Trivy Vulnerability Scan Results
Report Summary
Scan Result Details✅ No vulnerabilities found during the scan for |
📦 Trivy Secret Scan Results
Report Summary
Scan Result Details✅ No secrets found during the scan for |
|
🛠 Docs available at: https://k.atlan.dev/application-sdk/add-messaging-event-processing |
|
|
||
| return JSONResponse( | ||
| status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, | ||
| content={"error": str(e)}, |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 12 days ago
To fix this problem, the code should return a generic error message to users, rather than the actual exception message. Internally, the full exception (including stack trace) should continue to be logged for debugging purposes. This means changing the JSON response to use a generic message like "An internal server error occurred." instead of {"error": str(e)} in the exception handler. Only change the line returning the response—do not modify any functionality or logging code. No new imports are needed as logging is already handled.
-
Copy modified line R432
| @@ -429,7 +429,7 @@ | ||
|
|
||
| return JSONResponse( | ||
| status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, | ||
| content={"error": str(e)}, | ||
| content={"error": "An internal server error occurred."}, | ||
| ) | ||
|
|
||
| # Register the endpoint - Dapr calls POST /{binding-name} |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/822 |
Changelog
Additional context (e.g. screenshots, logs, links)
Checklist
Copyleft License Compliance