-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
file-server returns 500 when filename contains some special characters #4923
Comments
Thanks for opening an issue! We'll look into this. It's not immediately clear to me what is going on, so I'll need your help to understand it better. Ideally, we need to be able to reproduce the bug in the most minimal way possible. This allows us to write regression tests to verify the fix is working. If we can't reproduce it, then you'll have to test our changes for us until it's fixed -- and then we can't add test cases, either. I've attached a template below that will help make this easier and faster! This will require some effort on your part -- please understand that we will be dedicating time to fix the bug you are reporting if you can just help us understand it and reproduce it easily. This template will ask for some information you've already provided; that's OK, just fill it out the best you can. 👍 I've also included some helpful tips below the template. Feel free to let me know if you have any questions! Thank you again for your report, we look forward to resolving it! Template
Instructions -- please heed otherwise we cannot help you (help us help you!)
Example of a tutorial: Create a config file: |
I've been able to reproduce this and I think I know the cause of the problem. We might be checking the escaping on |
Expected for path matching and rewriting. Fixes #4923.
This ended up being more complex than I thought (after going down the rabbit hole), and the fix is now working in #4948. |
I have a file named "%@.exe" and when I use
file-server --browse
to view the directory everything is OK. While I click on this file to download it, Caddy returns 500.In the log, I found this:
After testing, there is no problem with nginx.
The text was updated successfully, but these errors were encountered: