Jerry Chin created HTTPCLIENT-1905:
--------------------------------------
Summary: Cookie without domain causes NPE
Key: HTTPCLIENT-1905
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1905
Project: HttpComponents HttpClient
Issue Type: Bug
Components: HttpClient (classic)
Affects Versions: 4.5.3
Reporter: Jerry Chin
Long story short:
The default cookie spec implementation is assuming that domain field is
non-null, but it's actually an optional attribute for BasicClientCookie, thus a
NPE is thrown.
The problem has been discussed before (null domains break Cookie.java), not
sure why it's not get merged, and a [question
|https://stackoverflow.com/questions/14115670/using-apache-httpclient-how-to-set-cookie-for-http-request]
on stack-overflow regarding this problem has 20k+ views.
Can someone fix this?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]