18 lines
421 B
Markdown
18 lines
421 B
Markdown
|
|
# 2026-06-06 — API 巡检 B2(sync + files)修复
|
|||
|
|
|
|||
|
|
## 摘要
|
|||
|
|
|
|||
|
|
审计 sync_v2 / files / 路径校验模块;为 `SyncFiles` 与 `SyncVerify` 的 `server_ids` 增加 2000 上限,防止超大列表资源耗尽。
|
|||
|
|
|
|||
|
|
## 涉及文件
|
|||
|
|
|
|||
|
|
- `server/api/schemas.py`
|
|||
|
|
- `tests/test_security_unit.py`
|
|||
|
|
- `docs/reports/2026-06-06-api-audit-b2-sync-files.md`
|
|||
|
|
|
|||
|
|
## 验证
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
.venv/bin/pytest tests/test_security_unit.py -q
|
|||
|
|
```
|