-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Client] Incorrect handling of '..' in url path. #1996
Labels
Comments
Well, it should be done in |
Yeah, I don't know the structure of the project (and as a result which module should do it) that's why I am reporting it here. If there is no further action that can/should be taken by aiohttp feel free to close the issue. |
Please create an issue in https://github.com/aio-libs/yarl and close it here. |
Ok opened a ticket to yarl. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
When making a request with a ClientSession object:
If a requested path contains a path level that is
..
it is not translated by removing the previous level from the path.Expected behaviour
Example:
A request to
http://mysite.com/lvl1/lvl2/../file.tar.gz
should be translated tohttp://mysite.com/lvl1/file.tar.gz
before sending.Actual behaviour
The request is sent to
http://mysite.com/lvl1/lvl2/../file.tar.gz
Steps to reproduce
In contrary with wget :
will result in
Note that it translates the url path before sending the request.
Your environment
Ubuntu16.04 amd64 Python3.5 aiohttp 2.1.0
The text was updated successfully, but these errors were encountered: