-
Notifications
You must be signed in to change notification settings - Fork 133
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
With Directory listing turned on query parameters cause 500 errors #164
Comments
I've verified this issue as reproducible. I hope to be able to do a root cause analysis soon. If anyone has insights into the cause of the issue, posting them in the comments would be quite welcome. |
I suspect the issue is using |
@coreyfellows Can you verify if the PR #167 fixes the issue for you in your environment? |
@coreyfellows Quick question for you. Given your expectation described in the bug report, do you also have My understanding is that without You can see it here: #169 |
Co-authored-by: Javier Evans <[email protected]>
@coreyfellows A fix for this bug report has been merged. If the problem persists in the new version please reopen this issue. Thank you for your contribution to the project. |
This PR fixes the issue nginxinc#164 ## Expectations This solution assumes that the following configuration options are set to true * `APPEND_SLASH_FOR_POSSIBLE_DIRECTORY` * `PROVIDE_INDEX_PAGE` * `ALLOW_DIRECTORY_LIST` Given a folder `test` **with** an `index.html` present in the directory, the `index.html` should be served for: * `/test` * `/test/` * `/test?foo=bar` * `/test/?foo=bar` Given a folder `test` **WITHOUT** an `index.html` present in the directory, files in the directory should be listed for: * `/test` * `/test/` * `/test?foo=bar` * `/test/?foo=bar` ## Notes * The `@trailslash` was rewriting to `$request_uri` with a trailing slash on the end. In the case of `/test?foo=bar` we'd wind up with `/test?foo=bar/` which when combined with the other changes led to a rewrite loop * Changed the check for directory or file to consider the path without anchor or querystring * Added yet another integration test suite and shuffled around the conditionals that maybe make the tests even more confusing - but do cover this case. Co-authored-by: Javier Evans <[email protected]> * make the isDirectory check simpler and more inclusive of error states * Allow useful output from curl and enable timeouts This change adds three new flags when using curl to hit endpoints as part of integration tests: --connect-timeout 3 --max-time 30 --no-progress-meter --------- Co-authored-by: Javier Evans <[email protected]>
Describe the bug
With Directory listing turned on query parameters cause 500 errors
To Reproduce
Steps to reproduce the behavior:
/test/index.html
Expected behavior
Should show the content of index.html
Your environment
Container is the latest release
Deployed on AWS EC2 with EKS with AWS S3 as the backend
The text was updated successfully, but these errors were encountered: