traefik: Error when requesting an url with double slashes, right after hostname
What version of Traefik are you using (traefik version
)?
1.1.2
What is your environment & configuration (arguments, toml…)?
I have an example toml, which uses Google as an backend : url = “https://www.google.com:443”
What did you do?
First, I tested my conf : http://localhost/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png It worked.
Then, I tried http://localhost//images/branding/googlelogo/2x/googlelogo_color_120x44dp.png It didn’t work, I got this error from Google : The requested URL /branding/googlelogo/2x/googlelogo_color_120x44dp.png was not found on this server
It seems that Traefik removed “/images/” from the URL.
If I tried another url with double slashed but inside the url, it worked : http://localhost/images/branding//googlelogo/2x/googlelogo_color_120x44dp.png
What did you expect to see?
These two URL should work in a identical way : http://localhost//images/branding//googlelogo/2x/googlelogo_color_120x44dp.png http://localhost/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 9
- Comments: 20 (6 by maintainers)
Any updates?
Closed by #2451
Any updates?
I have the same problem. I use Jenkins behind Traefik and some pictures don’t show up because of this. Example: https://jenkins.host//static/5a36b3a5/images/48x48/user.png Result (notice the
//static/
part is missing):If I remove that extra slash, it works. It also works if I bypass traefik completely and request that same URL to Jenkins directly.
Same story with Jenkins. Trying to pinpoint the bug, I found out that the container is getting a request of the form
GET http://api/json HTTP/1.1
instead ofGET //api/json HTTP/1.1