-
Notifications
You must be signed in to change notification settings - Fork 35
Dev -> Main Merge #572
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?
Dev -> Main Merge #572
Conversation
Server_API/app/core/Ingestion_Media_Processing/Video_DL_Ingestion_Lib.py
Fixed
Show fixed
Hide fixed
Server_API/app/core/Ingestion_Media_Processing/Video_DL_Ingestion_Lib.py
Fixed
Show fixed
Hide fixed
tldw_Server_API/app/core/Ingestion_Media_Processing/Video/Video_DL_Ingestion_Lib.py
Dismissed
Show dismissed
Hide dismissed
tldw_Server_API/app/core/Ingestion_Media_Processing/Video/Video_DL_Ingestion_Lib.py
Fixed
Show fixed
Hide fixed
|
||
return schema_info | ||
except Exception as e: | ||
return {"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 8 days ago
To fix the issue, we will replace the direct exposure of the exception message (str(e)
) with a generic error message for the user. The detailed exception information, including the stack trace, will be logged on the server for debugging purposes. This ensures that sensitive information is not exposed to external users while still allowing developers to diagnose issues.
The changes will involve:
- Logging the exception details (e.g., using Python's
logging
module). - Returning a generic error message to the user instead of the exception details.
-
Copy modified lines R5407-R5409
@@ -5406,3 +5406,5 @@ | ||
except Exception as e: | ||
return {"error": str(e)} | ||
import logging | ||
logging.error("An error occurred in the debug_schema endpoint", exc_info=True) | ||
return {"error": "An internal error has occurred. Please contact support if the issue persists."} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
PoC_Version/App_Function_Libraries/Summarization/Local_Summarization_Lib.py
Fixed
Show fixed
Hide fixed
tldw_Server_API/app/core/Ingestion_Media_Processing/PDF/PDF_Processing_Lib.py
Dismissed
Show dismissed
Hide dismissed
tldw_Server_API/app/core/Ingestion_Media_Processing/PDF/PDF_Processing_Lib.py
Dismissed
Show dismissed
Hide dismissed
tldw_Server_API/app/core/Ingestion_Media_Processing/PDF/PDF_Processing_Lib.py
Dismissed
Show dismissed
Hide dismissed
This commit addresses several failing tests in test_prompts_api.py and test_prompts_db_v2.py. Key changes include: - Corrected mocking of settings for token verification tests. - Ensured token format in auth_headers fixture matches expected format. - Switched to using UUIDs for prompt updates in certain tests to avoid potential ID lookup issues. - Added 'deleted' field to prompt search results to fix Pydantic validation. - Fixed logic in keyword creation to correctly raise ConflictError for active duplicates. - Refactored sync log endpoint tests to use FastAPI dependency_overrides for reliable mocking. - Updated database-level prompt creation test to expect ConflictError for duplicates.
…Fully AI Fix multiple test failures in Prompt Management
Placeholder for when API backend is setup.
Opening this to track build status of dev.