Not possible to add a cookie

41 views
Skip to first unread message

nikolaos....@googlemail.com

unread,
May 28, 2015, 9:16:56 AM5/28/15
to gat...@googlegroups.com
Hi guys,

I've a simulation where I manually add a cookie but this seems to be broken with version 2.1.6 (I've double checked that with 2.1.5 and everything works fine).

Greetings
Niko

Java: java version "1.8.0_45",
Gatling: 2.1.6

Stéphane LANDELLE

unread,
May 28, 2015, 9:27:26 AM5/28/15
to gat...@googlegroups.com
Hi Niko,

Could you elaborate, please? Is it a runtime issue, or a compile one? Do you have a reproducer? What does your cookie look like?

Thanks,

Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nikolaos....@googlemail.com

unread,
May 28, 2015, 9:48:36 AM5/28/15
to gat...@googlegroups.com
Hi Stéphane,

sorry forgot to add more details :)

I think this part is broken or just don't work for me:

.exec(addCookie(Cookie("foo", "bar")))

and from what I see in the logs is that the cookie is not added to the request. Cookie foo=bar is only added in gatling version 2.1.5

### Gatling 2.1.5
Session:
Session(Dummy,1707552068789190625-0,Map(gatling.http.cookies -> CookieJar(Map(CookieKey(foo,192.168.32.185,/) -> StoredCookie(foo=bar; domain=192.168.32.185; path=/,false,false,1432819926342))), password -> secret, OX_SESSION -> 7174a879cf16425796555462fc90f53f),1432819926113,101,OK,List(GroupBlock(List(Module Login),1432819926342,5,1,0)),<function1>)
=========================

Cookie: JSESSIONID=954224790029827469.APP1; open-xchange-secret-njXXcPzZsWPlezFW3OPw=006c13ac3f484206801dd48f8586a347; open-xchange-public-session-7443ac16aff0a368a60008b14b088e11=e868785c0f5d404693a5eb6b22d5ffdb; foo=bar


### Gatling 2.1.6
Session:
Session(Dummy,4540205866862595094-0,Map(gatling.http.cookies -> CookieJar(Map()), password -> secret, OX_SESSION -> 8a5b36c9e32142889288659aa2997544),1432820049901,85,OK,List(GroupBlock(List(Module Login),1432820050070,5,1,0)),<function1>)

Cookie: JSESSIONID=4968260971617307284.APP1; open-xchange-secret-njXXcPzZsWPlezFW3OPw=517df17d995b40dc84b87b07c6babb6e; open-xchange-public-session-7443ac16aff0a368a60008b14b088e11=82462fd960564ac2b3f08f662ef56392


Greetings
Niko

Stéphane LANDELLE

unread,
May 28, 2015, 11:01:08 AM5/28/15
to gat...@googlegroups.com
Fixed, thanks for reporting, Niko!

Stéphane Landelle
Lead developer


Reply all
Reply to author
Forward
0 new messages