Files
Nexus/docs/changelog/2026-06-04-ls-timezone-parse-fix.md
T
2026-07-08 22:31:31 +08:00

23 lines
713 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-04 — 文件列表 ls 时区字段解析修复
## 摘要
修复 GNU `ls -la``long-iso` 输出中带 `+0800` 时区时,文件名被误解析为 `+0800` 的 bug。
## 动机
Ubuntu 默认 `ls` 常输出 `2026-06-01 12:00:00 +0800 filename`,原逻辑将 `parts[7]` 当作文件名,文件管理页缺文件或显示异常。
## 涉及文件
- `server/utils/unix_ls.py`
- `tests/test_file_permissions.py`(原有用例现已通过)
- `tests/test_security_unit.py``tests/test_step0_infrastructure.py`(中间件测试对齐纯 ASGI
## 验证
```bash
pytest tests/test_file_permissions.py -q
pytest tests/ -q # 135 passed, 1 skipped 级(CDN 预览 HTML 见审计报告)
```