MicroFish/backend/app/models
Ubuntu 868ce39577 fix(storage,db): path traversal fix, delete_prefix validation, remove dead import, factory uses Config
- local.py: use relative_to() for path traversal guard (fixes prefix-collision false negative)
- local.py: validate delete_prefix rejects empty/root prefix to prevent full-storage wipe
- local.py: remove unused `import os`
- db_models.py: remove dead UniqueConstraint import
- db_models.py: replace deprecated datetime.utcnow() with datetime.now(timezone.utc)
- factory.py: read STORAGE_TYPE and related settings from Config instead of os.environ directly; remove `import os`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 00:06:58 +00:00
..
__init__.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
db_models.py fix(storage,db): path traversal fix, delete_prefix validation, remove dead import, factory uses Config 2026-05-03 00:06:58 +00:00
project.py feat(recovery): persist active_task_id to project.json for browser-refresh reconnection 2026-04-26 14:54:44 +00:00
task.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00