https://issues.apache.org/bugzilla/show_bug.cgi?id=48568
Summary: CookieManager broken for AjpSampler
Product: JMeter
Version: 2.3.4
Platform: All
OS/Version: All
Status: NEW
Keywords: PatchAvailable
Severity: normal
Priority: P2
Component: HTTP
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24855)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24855)
Patch against trunk
We noticed two bugs when using the AjpSampler in combination with
CookieManager:
A) The cookie header is formatted incorrect and therefore not accepted by the
application
B) The cookie information is not passed along to the HTTPSampleResult
Problem A) comes from formatting the cookie via getStringValue(), which returns
something like a tab formatted list of the Cookie attributes. You can use a
simple JSP or Servlet containing
String cookie=request.getHeader("Cookie");
if (cookie != null) {
out.println("Cookie: " + cookie);
}
to verify this. The fix consists in using an actual Cookie object instead of a
generic JMeterProperty and then retrieving Cookie name and value via getName()
and getValue().
Problem B) is fixed by calling res.setCookies().
See the atahced patches.
Thanks for the great Apache JMeter software!
--
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]