You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Jerry Chin (JIRA)" <ji...@apache.org> on 2018/02/13 02:48:00 UTC
[jira] [Created] (HTTPCLIENT-1905) Cookie without domain causes NPE
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org