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:53:00 UTC

[jira] [Closed] (HTTPCLIENT-1905) Cookie without domain causes NPE

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Chin closed HTTPCLIENT-1905.
----------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>
> 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