hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Budincevic (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1831) Possible bug in URIBuilder
Date Mon, 13 Mar 2017 12:18:41 GMT

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

Ivan Budincevic updated HTTPCLIENT-1831:
----------------------------------------
    Description: 
While using the URIBuilder class to add a query parameter to a url using the 	addParameter(String
param, String value) method, the output of this method would always append a "/" to the beginning
of the url. 

The problem was first noticed for urls that contained "./" at the beginning, with the resulting
url output from addParameter having "/./" at the beginning, The attempted fix was to remove
the "./" part of the urls in order to have a relative http path, but using this method would
still append a "/" to the beginning, converting the url path to an absolute path instead of
the original relative path. 

This problem did not occur with versions previous to 4.5.3 

  was:
While using the URIBuilder class to add a query parameter to a url using the 	addParameter(String
param, String value) method, the output of this method would always append a "/" to the beginning
of the url. 

The problem was first noticed for urls that contained "./" at the beginning, with the resulting
url output from addParameter having "/./" at the beginning, The attempted fix was to remove
the "./" part of the urls in order to have a relative http path, but using this method would
still append a "/" to the beginning, converting the url path to an absolute path instead of
the original relative path.  


> Possible bug in URIBuilder
> --------------------------
>
>                 Key: HTTPCLIENT-1831
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1831
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.3
>            Reporter: Ivan Budincevic
>              Labels: bug
>
> While using the URIBuilder class to add a query parameter to a url using the 	addParameter(String
param, String value) method, the output of this method would always append a "/" to the beginning
of the url. 
> The problem was first noticed for urls that contained "./" at the beginning, with the
resulting url output from addParameter having "/./" at the beginning, The attempted fix was
to remove the "./" part of the urls in order to have a relative http path, but using this
method would still append a "/" to the beginning, converting the url path to an absolute path
instead of the original relative path. 
> This problem did not occur with versions previous to 4.5.3 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message