-
Notifications
You must be signed in to change notification settings - Fork 390
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 name of 25 characters or more, corrupt the upload_field_name.path in the http header #128
Comments
I'm confused, where are |
I'm not sure what part of the upload process names the file upload, but this is what nginx named the uploaded file. In this case it was Environment:
Snippet from nginx.conf:
I’ll start from the beginning of the scenario. Please note, I’m using 0000000026 (the hashed file name of the file uploaded) as an example.
I hope this make sense. Nonetheless, I’ll provide any information needed. I can rebuild and place logging where ever needed. |
I've tried replicating your issue; here's the curl command I'm running:
In the proxy-pass location, I echo back the form data. Here's what gets returned:
One thing I notice is that the files created by |
I'm closing the issue. I've deleted the repo cache, rebuilt buildroot, all associated software, and the problem magically went away. Although, keeping an eye on the code. Thanks for your comments. |
When passed to the backend and the file name is larger than 24 characters. the path that references the hashed file name is corrupted.
Is this a limitation for http or is this an issue with nginx-upload-module? Not sure.
Working
Header snippet at 24 characters (file name passed from html form: 012345678901234567890123):
Not Working (note the path is shortened)
Header snippet at 27 characters (file name: 012345678901234567890123):
The text was updated successfully, but these errors were encountered: