Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
5.1.4
-
None
-
None
Description
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 .