You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Varun Nandi (JIRA)" <ji...@apache.org> on 2019/04/16 16:51:00 UTC

[jira] [Commented] (HTTPCLIENT-1983) URIBuilder normalization change is significantly breaking

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

Varun Nandi commented on HTTPCLIENT-1983:
-----------------------------------------

Any updates on this issue? This change is helpful for existing customers to upgrade to newer versions without breaking their application and without any code change.

Customers who want to enable normalization can make the code change to explicitly enable the option. The new behavior (disable normalization by default) will effect only few Apache customers as compared to current behavior (enable normalization by default) which effects lot of customers.

> URIBuilder normalization change is significantly breaking
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-1983
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1983
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.5.7, 4.5.8
>            Reporter: Ryan Schmitt
>            Priority: Major
>             Fix For: 4.5.9
>
>
> In 4.5.7, the behavior of URIBuilder changed in order to address HTTPCLIENT-1960. Since that version was released, I have seen a concerning number of users complain that this change has broken their code (see issue links). In 4.5.8, as a result of HTTPCLIENT-1968, an option was added to allow users to opt in to the old behavior, but the new behavior is what they will get by default. This problem is difficult to work around for developers who cannot exercise exact control over the runtime version of HttpClient: the method they need might not be there, and if it is, it needs to be invoked reflectively, or in a way that tolerates a {{NoSuchMethodError}}.
> For the sake of compatibility, I propose that we change the default value of {{normalizeUri}} to {{false}}. This will be the default on the 4.5.x line only; the 5.0.x line, as well as any future 4.6.x line, will normalize by default (if an option is needed at all).



--
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