Security - File Restoration + CodeQL Alert Remediation
Problem
v10.17.11 introduced a bad merge that triplicated the content of 4 large files (web/api/documents.py, web/api/search.py, web/api/consolidation.py, web/oauth/authorization.py), causing 43 new CodeQL alerts (repeated-import, multiple-definition).
Fixes
- py/repeated-import (18 alerts): Removed triplicated file content — files restored to single clean copy
- py/multiple-definition (9 alerts): Eliminated duplicate function definitions from file triplication
- py/log-injection (4 alerts): Removed remaining user-controlled data from log messages
- py/stack-trace-exposure (12 alerts): Removed exception details from API error responses
- pyproject.toml: Also fixed duplicate
[build-system]section from same bad merge
Full Changelog: v10.17.11...v10.17.12