hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1715) NTLMEngineImpl.Type1Message not thread safe but declared as a constant
Date Wed, 27 Jan 2016 18:11:40 GMT

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

Gary Gregory commented on HTTPCLIENT-1715:


There is no due date indeed. If you scan the ML, you'll find that [~olegk] has guesstimated
a mid-February tentative goal for a 4.5.2. release. YMMV. Feel free to provide patches for
outstanding fixes of course. 

Thank you,

> NTLMEngineImpl.Type1Message not thread safe but declared as a constant
> ----------------------------------------------------------------------
>                 Key: HTTPCLIENT-1715
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1715
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.5.1
>            Reporter: Olivier Lafontaine
>            Assignee: Gary Gregory
>             Fix For: 4.5.2, 5.0 Alpha2
> {{NTLMEngineImpl}} declares a {{static final}} member named {{TYPE_1_MESSAGE}} of type
{{Type1Message}}. Members of {{Type1Message}} are final and do not change, but that is not
the case for members of its superclass {{NTLMMessage}}.
> Whenever the method {{NTLMEngineImpl#getType1Message(String, String)}} is called, the
method {{NTLMMessage#getResponse()}} get called on the {{TYPE_1_MESSAGE}} instance and this
modifies the following members of {{NTLMMessage}}:
> * messageContents
> * currentOutputPosition
> This is not thread safe and we get exceptions as seen in HTTPCLIENT-1686.
> My guess is that the computed response string should be kept in a constant instead of
a {{Type1Message}} instance.

This message was sent by Atlassian JIRA

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

View raw message