You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dashboard): repair code-tab test doubles & harden path/error handling
Test fixes (22 failing tests on all CI platforms):
- Add register_config_changed_callback to the _DummyAgent and _AgentNoProject
doubles in test_dashboard_code.py, which drifted from SerenaDashboardAPI's
agent contract (added in __init__).
- Fix renamed accessor: _get_config_overview -> _compute_config_overview.
CodeQL hardening:
- Rewrite resolve_project_path to os.path.realpath()+startswith() containment,
the only sanitizer form CodeQL py/path-injection models, clearing the
"uncontrolled data in path expression" alerts while still guarding traversal.
- Return generic client error messages instead of str(e) and log details
server-side, clearing the "information exposure through an exception" alerts.
- Log rejected paths (traversal/NUL/absolute/escape) at warning for visibility.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments