Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return 404 for loading a folder #432

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

adam-fowler
Copy link
Member

For some reason FileMiddleware was throwing a IsDirectoryError when we tried to get file attributes for a directory. This was then getting converted to an internal server error (500). When we should be returning a 404 for trying to load a folder.

@adam-fowler adam-fowler requested a review from Joannis May 1, 2024 12:37
@Joannis Joannis mentioned this pull request May 3, 2024
@adam-fowler adam-fowler force-pushed the filemiddleware-load-folder branch from 45f5ba0 to cdedcd8 Compare May 3, 2024 16:04
@adam-fowler adam-fowler merged commit 972f81d into main May 3, 2024
5 checks passed
@adam-fowler adam-fowler deleted the filemiddleware-load-folder branch May 3, 2024 16:37
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