Skip to content

fix(webui): avoid Windows-reserved download names - #1288

Merged
harry0703 merged 2 commits into
harry0703:mainfrom
Sushanth012:fix/windows-reserved-download-names
Aug 31, 2026
Merged

fix(webui): avoid Windows-reserved download names#1288
harry0703 merged 2 commits into
harry0703:mainfrom
Sushanth012:fix/windows-reserved-download-names

Conversation

@Sushanth012

@Sushanth012 Sushanth012 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • detect Windows device names after sanitizing video download subjects
  • prefix reserved names such as CON, AUX, and LPT1 so downloads remain cross-platform safe
  • cover reserved names with focused task-history tests

Testing

  • uv run --no-sync python -X utf8 -m pytest -q test/services/test_webui_task_history.py test/services/test_webui_task.py (25 passed)
  • uv run --no-sync ruff check webui/Main.py test/services/test_webui_task_history.py test/services/test_webui_task.py
  • uv run --no-sync python -m compileall webui test/services/test_webui_task_history.py

@harry0703
harry0703 merged commit eddcef3 into harry0703:main Aug 31, 2026
3 checks passed
harry0703 added a commit that referenced this pull request Aug 31, 2026
Handle superscript device names and whitespace variants, and expand
download filename regression coverage.

Follow-up-to: #1288
@harry0703

Copy link
Copy Markdown
Owner

Thank you for the contribution! This has been merged. We also added a small follow-up to cover the remaining Windows reserved-name variants and expanded the regression tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants