hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mrwolf (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1644) NullPointerException during DefaultCookieSpec.formatCookies call
Date Fri, 02 Dec 2016 19:37:58 GMT

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

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

I guess our case was related to http://bugs.java.com/view_bug.do?bug_id=8021898 "JDK-8021898
: Broken JIT compiler optimization for loop unswitching".

> 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


Mime
View raw message