You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "mrwolf (JIRA)" <ji...@apache.org> on 2015/05/03 10:15:05 UTC

[jira] [Commented] (HTTPCLIENT-1644) NullPointerException during DefaultCookieSpec.formatCookies call

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14525716#comment-14525716 ] 

mrwolf commented on HTTPCLIENT-1644:
------------------------------------

Unfortunately I don't have wire log on my hand. I'll be back if I spot this Exception again. Thanks for pointing to logging section, will use it in next case.

> NullPointerException during DefaultCookieSpec.formatCookies call
> ----------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1644
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1644
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.4.1
>            Reporter: mrwolf
>            Priority: Minor
>         Attachments: DefaultCookieSpecTest.java
>
>
> Caused by: java.lang.NullPointerException
>         at org.apache.http.impl.cookie.DefaultCookieSpec.formatCookies(DefaultCookieSpec.java:191)
>         at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:186)
>         at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
>         at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:166)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
>         at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
>         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
> Current version of https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/cookie/DefaultCookieSpec.java::formatCookies is still vulnerable (if cookies contains null(s)).
> Maybe if cookie is null in that loop - it could be skipped?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org