https://issues.apache.org/bugzilla/show_bug.cgi?id=51512
Bug #: 51512
Summary: Cookies aren't inserted into HTTP request with IPv6
Host header
Product: JMeter
Version: 2.3.4
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Using Jmeter on a system with IPv6 addressing and brings to
the issue:
HTTP Cookies aren't inserted in the HTTP request.
Using the same jmx-test, but with IPv4 addressing, everything works fine.
The HTTP Requests are pretty much the same except for the Host header:
IPv4:
Host: 172.31.61.41:8123
IPv6:
Host: [2002::12]:8123
It seems like there is a bug in the way cookies are stored/retrieved for
IPv6 hosts.
Note: I tried changing the Cookie Policy to all the possible values
(rfc2965, etc.). It didn't help.
Note2: tried CookieManager.check.cookies=false in jmeter.properties didn't
help.
Looks like there is no workaround for this bug.
== Details: ===
IPv4:
--------
GET /xxx.xxx HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: 172.31.61.44:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--------
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2011 23:17:18 GMT
Content-Length: 659
Content-Type: text/html; charset=utf-8
Set-Cookie: TS48550d=7c55fc5f609f3263a19d5bf56ba87e4adc1f801ce2a34e724e1744d9;
Path=/
Set-Cookie:
TS48550d_1=bf7c6f914d6181372dfe392362bf8dc4dc1f801ce2a34e7200c6c833d9e562f258;
Path=/
<html><head><style>
TABLE, TD { border: 3px solid black; border-collapse: collapse }
</style></head>
<body><table>
<TR><TD>path </TD><TD> /xxx.xxx</TD></TR>
<TR><TD>query </TD><TD> </TD></TR>
<TR><TD>method </TD><TD> GET</TD></TR>
<TR><TD>cookie </TD><TD> </TD></TR>
<TR><TD>content_type</TD><TD> </TD></TR>
<TR><TD>content </TD><TD> </TD></TR>
<TR><TD>as_string </TD><TD><PRE>GET /xxx.xxx HTTP/1.1
Connection: keep-alive
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Host: 172.31.61.44:8123
User-Agent: Java/1.6.0_14
</PRE></TD></TR>
</table></body></html>
--------
GET /fff.zip HTTP/1.1
Connection: keep-alive
Cookie: TS48550d=7c55fc5f609f3263a19d5bf56ba87e4adc1f801ce2a34e724e1744d9;
TS48550d_1=bf7c6f914d6181372dfe392362bf8dc4dc1f801ce2a34e7200c6c833d9e562f258
User-Agent: Java/1.6.0_14
Host: 172.31.61.44:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
IPv6:
--------
GET /xxx.xxx HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: [2002::12]:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--------
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2011 20:37:53 GMT
Content-Length: 657
Content-Type: text/html; charset=utf-8
Set-Cookie: TS48550d=d1f940e9b0d067b9e4d9b7870a3b76fed46c8da98c8b21124e171f7e;
Path=/
Set-Cookie:
TS48550d_1=f2ca831a9781d3a13d30c433d2d18d43d46c8da98c8b211200c6c833d9e562f258;
Path=/
<html><head><style>
TABLE, TD { border: 3px solid black; border-collapse: collapse }
</style></head>
<body><table>
<TR><TD>path </TD><TD> /xxx.xxx</TD></TR>
<TR><TD>query </TD><TD> </TD></TR>
<TR><TD>method </TD><TD> GET</TD></TR>
<TR><TD>cookie </TD><TD> </TD></TR>
<TR><TD>content_type</TD><TD> </TD></TR>
<TR><TD>content </TD><TD> </TD></TR>
<TR><TD>as_string </TD><TD><PRE>GET /xxx.xxx HTTP/1.1
Connection: keep-alive
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Host: [2002::12]:8123
User-Agent: Java/1.6.0_14
</PRE></TD></TR>
</table></body></html>
--------
GET /fff.zip HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: [2002::12]:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--------
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]