Skip to content

Refactor API route for file upload from the UI to cleanup code + fix cases where NoneType is passed to os.path.exists#1384

Open
cccs-rs wants to merge 8 commits into
masterfrom
ui-refactor
Open

Refactor API route for file upload from the UI to cleanup code + fix cases where NoneType is passed to os.path.exists#1384
cccs-rs wants to merge 8 commits into
masterfrom
ui-refactor

Conversation

@cccs-rs

@cccs-rs cccs-rs commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Original issue to solve:

line 299, in start_ui_submission if os.path.exists(submitted_file): 
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

But noticed other things that we should just cleanup to remove unnecessary code

…cases where NoneType is passed to `os.path.exists`
Comment thread assemblyline_ui/api/v4/ui.py Outdated
Comment thread assemblyline_ui/api/v4/ui.py
Comment thread assemblyline_ui/api/v4/ui.py Outdated
Comment thread assemblyline_ui/api/v4/ui.py Outdated
@cccs-rs
cccs-rs requested a review from gdesmar July 9, 2026 13:56
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