-
Notifications
You must be signed in to change notification settings - Fork 129
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
Remove double/multiple forward slashes from the request path #88
Comments
In principle, I like this idea. How would you propose to deal with the unlikely edge case that someone names their object something silly like: |
Hi @dav-pascual , I would very much welcome a PR that fixes this issue with a rewrite rule. |
dav-pascual
added a commit
to dav-pascual/nginx-s3-gateway
that referenced
this issue
Mar 5, 2023
dav-pascual
added a commit
to dav-pascual/nginx-s3-gateway
that referenced
this issue
Mar 6, 2023
dav-pascual
added a commit
to dav-pascual/nginx-s3-gateway
that referenced
this issue
Mar 6, 2023
dav-pascual
added a commit
to dav-pascual/nginx-s3-gateway
that referenced
this issue
Mar 6, 2023
dav-pascual
added a commit
to dav-pascual/nginx-s3-gateway
that referenced
this issue
Mar 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the gateway in directory listing mode, if you have a double slash in the path, the request won't find the folder or files.
I suggest removing extra slashes from the path using a rewrite, a map in the config or from JavaScript.
Example:
https://example.com/pathFoo//file.txt
would becomehttps://example.com/pathFoo/file.txt
https://example.com/pathFoo//subpathFoo///
would becomehttps://example.com/pathFoo/subpathFoo/
The text was updated successfully, but these errors were encountered: