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

WebHost: Show error instead of 500 for unexpected files in multidata zip #2260

Merged
merged 5 commits into from
Oct 10, 2023

Conversation

remyjette
Copy link
Collaborator

What is this fixing or adding?

https://discord.com/channels/731205301247803413/1158587833435574323

For some reason the Patch.py file from the AP root dir got included in that zip which resulted in a 500 error on upload.

How was this tested?

Uploaded the zip in the above thread on main, saw 500. Applied fix, saw error message instead.

@el-u
Copy link
Collaborator

el-u commented Oct 3, 2023

How about including the name of the unexpected file in the error message?

@remyjette
Copy link
Collaborator Author

How about including the name of the unexpected file in the error message?

Sure.
image

WebHostLib/upload.py Outdated Show resolved Hide resolved
WebHostLib/upload.py Outdated Show resolved Hide resolved
Copy link
Member

@black-sliver black-sliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@black-sliver black-sliver merged commit 88dfbd4 into ArchipelagoMW:main Oct 10, 2023
12 checks passed
@ThePhar ThePhar added is: enhancement Issues requesting new features or pull requests implementing new features. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Oct 17, 2023
@remyjette remyjette deleted the invalid-zip-500 branch November 13, 2023 01:18
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…zip (ArchipelagoMW#2260)

* WebHost: Show error instead of 500 for unexpected files in multidata zip

* Add filename to error message

* Apply suggestions from code review

Co-authored-by: black-sliver <[email protected]>

---------

Co-authored-by: black-sliver <[email protected]>
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…zip (ArchipelagoMW#2260)

* WebHost: Show error instead of 500 for unexpected files in multidata zip

* Add filename to error message

* Apply suggestions from code review

Co-authored-by: black-sliver <[email protected]>

---------

Co-authored-by: black-sliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants