You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/06/20 07:25:31 UTC
[Bug 63520] New: Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
Bug ID: 63520
Summary: Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Product: JMeter
Version: 3.3
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: suhail.irfan21@gmail.com
Target Milestone: JMETER_5.2
Greetings!
I need to do load testing on Amazon AWS cloud for an application which requires
Sticky sessions. AWS ELB sends a cookie called AWSALB for sticky sessions.
JMeter is not able to add the cookie as it finds it to be malformed. I do not
want to run the test without disabling Sticky sessions, hence, the cookie will
exist. How do i make sure JMeter accepts this cookie?
I tried using all the Cookie Manager's policy inc Netscape but this doesn't
work and gives me the below exception. Can someone please look into this.
Typical Cookie:
AWSALB=Xvt/JIiJPAVz4+lK8F+ULq2317adfZ/mRzKPEzQ2gH7PBJU77S8eUZpZpleVCm6ooYzkhyxA5eUIkCOSOB4jIoKzLYG71rtQ9y9/F/OWJRYgHMKiCCD0p122YUyn;
Expires=Mon, 24 Jun 2019 11:23:51 GMT; Path=/
Error in Jmeter Log:
2019-06-17 16:53:54,532 ERROR o.a.j.p.h.c.HC4CookieHandler: Unable to add the
cookie org.apache.http.cookie.MalformedCookieException: Invalid 'expires'
attribute: Mon, 24 Jun 2019 11:23:54 GMT at
org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:64)
~[httpclient-4.5.3.jar:4.5.3] at
org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:113)
~[httpclient-4.5.3.jar:4.5.3] at
org.apache.http.impl.cookie.NetscapeDraftSpec.parse(NetscapeDraftSpec.java:134)
~[httpclient-4.5.3.jar:4.5.3]
Many Thanks,
Suhail
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |trivial
Resolution|--- |INVALID
Status|NEW |RESOLVED
OS| |All
--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Please ask questions about using JMeter on the mailing list.
If I read the stacktrace correctly, you have configured an ancient Cookie Spec
in your Cookie Manager. See
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager
for more information. The recommended Cookie Policy is "standard".
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
Status|NEEDINFO |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Closing as no feedback.
Feel free to reopen by answering Felix's request
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
SUHAIL <su...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from SUHAIL <su...@gmail.com> ---
Hi felix,
As i mentioned i tried with all cookie policies including standard.
When using Standard Jmeter doesnt even list the Cookie in the Request headers
if i see the view results tree.
Can you provide me with the mailing list to ask questions?
Thanks,
Suhail
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|JMETER_5.2 |---
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
--- Comment #4 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 36637
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36637&action=edit
Usage of sample cookie with http mirror
The attached sample plan uses the cookie from the example above and parses it
with the standard cookie manager. It shows no problems -- except when used with
the netscape mode.
To use the test plan you have to start the embedded http mirror element before
running the plan.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 63520] Malformed Cookie Exception When Jmeter tries to add
Amazon AWSALB Cookie
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63520
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEEDINFO
--- Comment #3 from Felix Schumacher <fe...@internetallee.de> ---
I didn't read carefully enough and didn't see, that you tried to use all
implementations. I suspect that you didn't hit the right knob to change it,
though.
The mailing lists and how to use them are described at
https://jmeter.apache.org/mail2.html
A minimal testcase that reproduces the error is always helpful.
--
You are receiving this mail because:
You are the assignee for the bug.