[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-commons-dev
Subject:    [jira] [Resolved] (HTTPCLIENT-2252) URIBuilder : if we pass Special characters like :,/ along with h
From:       "Oleg Kalnichevski (Jira)" <jira () apache ! org>
Date:       2022-12-07 17:47:00
Message-ID: JIRA.13510451.1670424262000.180574.1670435220068 () Atlassian ! JIRA
[Download RAW message or body]


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

Oleg Kalnichevski resolved HTTPCLIENT-2252.
-------------------------------------------
    Resolution: Invalid

> URIBuilder : if we pass Special characters like :,/ along with hostname to the \
> setHost method, the special characters in the hostname is getting converted to \
>                 encoded values
> ------------------------------------------------------------------------------------ \
> ----------------------------------------------------------------------------------------
>  
> Key: HTTPCLIENT-2252
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2252
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 5.1.4
> Reporter: Praveen Gowthaman
> Priority: Minor
> 
> *ClassName : URIBuilder.java*
> *Package: org.apache.hc.core5.net*
> *Context:*
> getHost() method in the URIBuilder class if passed a special character like : or / \
>                 etc along with hostname then it is converting them into their \
>                 encoded values .  
> *Example Code Snippet :*  
> URI uri = new URIBuilder().setScheme("http").setHost("apache-test-1:dev").setPath("test").build();
>  Assume above code snippet , when the .build() is executed the URI object will have \
> a path like below = "http://apache-test-1%3Adev" .   The : char is converted to \
> encoded value example %3A Kindly excuse me if details are not enough or if this is \
> not an issue . Kindly add comment if further details are required .  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic