[
https://issues.apache.org/jira/browse/TS-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cynthia Gu updated TS-1570:
---------------------------
Attachment: patch.diff
tested and worked
curl http://127.0.0.1:6661/ -H "Host: linkedin.com:80xxx" -v
* About to connect() to 127.0.0.1 port 6661 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 6661 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0
> zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Accept: */*
> Host: linkedin.com:80xxx
>
< HTTP/1.1 400 Invalid HTTP Request
< Date: Tue, 18 Nov 2014 22:37:52 GMT
< Connection: keep-alive
< Server: ATS/5.2.0
< Cache-Control: no-store
< Content-Type: text/html
< Content-Language: en
< Content-Length: 220
<
<HTML>
<HEAD>
<TITLE>Bad Request</TITLE>
</HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Bad Request</H1>
<HR>
<FONT FACE="Helvetica,Arial"><B>
Description: Could not process this request.
</B></FONT>
<HR>
</BODY>
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
> remap doesn't reject request whose Host has extra characters after port (like
> "test.com:80xxx")
> -----------------------------------------------------------------------------------------------
>
> Key: TS-1570
> URL: https://issues.apache.org/jira/browse/TS-1570
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 3.3.0
> Reporter: Conan Wang
> Assignee: Cynthia Gu
> Priority: Minor
> Fix For: 5.3.0
>
> Attachments: patch.diff
>
>
> remap.config: map http://test.com http://1.1.1.1
> The request with Host: 'test.com:80xxx' or 'test.com:xxx' will get passed.
> Such host is not filtered strictly.
> Just report, didn't have big problem for me though.
> curl http://127.0.0.1:8080/ -H "Host: test.com:80xxx"
> or curl -x 127.0.0.1:8080 http://test.com:80xxx/ -v
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)