Comment on revision r546209825f8dab6e5a222e5b93f9e3265eb9b6f7 in selenium

10 views
Skip to first unread message

sele...@googlecode.com

unread,
Feb 19, 2014, 12:12:13 PM2/19/14
to selenium-develope...@googlegroups.com
Comment by lqua...@gmail.com:

General Comment:
Hi there,

Does this fix include anything for C# and .Net? I ask because the files
modified here are all for java, yet issue 5790, which was merged into 5397,
mentions the same problem in .Net

For more information:
https://code.google.com/p/selenium/source/detail?r=546209825f8dab6e5a222e5b93f9e3265eb9b6f7

sele...@googlecode.com

unread,
Feb 19, 2014, 12:31:32 PM2/19/14
to selenium-develope...@googlegroups.com
Comment by barancev:

General Comment:
Reopened. Only Java is fixed at the moment.

sele...@googlecode.com

unread,
Jun 17, 2014, 6:36:37 AM6/17/14
to selenium-develope...@googlegroups.com
Comment by richardn...@gmail.com:

Score: Positive

General Comment:
This is causing us issues on a .NET project (our website uses a third-party
analytics library which is creating a cookie that has no name).

Are there any plans to fix this in the .NET codebase?

sele...@googlecode.com

unread,
Jan 7, 2016, 2:38:38 PM1/7/16
to selenium-develope...@googlegroups.com
Comment by aussi...@gmail.com:

Score: Positive

General Comment:
Hi.
I am new user of Selenium libraries, so please, correct me if I am posting
my question to the wrong board.

My automation (.NET, Selenium 2.48.2, Chrome Version 47.0.2526.106 m)
encountered an exception "Cookie name cannot be null or empty
string\r\nParameter name: name" with following stack:

at OpenQA.Selenium.Cookie..ctor(String name, String value, String domain,
String path, Nullable`1 expiry) in
e:\mypath\dotnet\src\webdriver\Cookie.cs:line 56
at OpenQA.Selenium.Internal.ReturnedCookie..ctor(String name, String
value, String domain, String path, Nullable`1 expiry, Boolean isSecure,
Boolean isHttpOnly) in
e:\mypath\dotnet\src\webdriver\Internal\ReturnedCookie.cs:line 49
at OpenQA.Selenium.Cookie.FromDictionary(Dictionary`2 rawCookie) in
e:\mypath\dotnet\src\webdriver\Cookie.cs:line 268
at OpenQA.Selenium.Remote.RemoteCookieJar.GetAllCookies() in
e:\mypath\dotnet\src\webdriver\Remote\RemoteCookieJar.cs:line 136

I have Selenium source, so it looks like the constructor of class Cookie
(Cookie.cs) explicitly checks for an empty value of the name string.
Apparently it is possible to have a cookie with an empty name, so I think
that the Selenium should not throw an execution at this point and break the
execution.

I cannot challenge the validity of such cookie, (it is analytical and is
external to my team).

This is a bug in Selenium. Is there better board to report this incident?
The repro would be:

Start Chrome with url "http://www.paulaschoice.com"
Press F12
Navigate to the Tab Resources.
Expand the Cookies node, find sub-node "rainbow-ca-p.mythings.com"
In the right pane observe column name:
It contains a row with empty name and value "|1"

Thank you.
Reply all
Reply to author
Forward
0 new messages