A DESCRIPTION OF THE PROBLEM :
Resolving a relative path to a URI without any path results in an invalid URI
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
new URI("http://test.com").resolve( "path" ).toString()
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
http://test.com/path
ACTUAL -
http://test.compath
---------- BEGIN SOURCE ----------
assert new URI("http://test.com").resolve( "path" ).toString().equals("http://test.com/path")
---------- END SOURCE ----------
FREQUENCY : always
Resolving a relative path to a URI without any path results in an invalid URI
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
new URI("http://test.com").resolve( "path" ).toString()
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
http://test.com/path
ACTUAL -
http://test.compath
---------- BEGIN SOURCE ----------
assert new URI("http://test.com").resolve( "path" ).toString().equals("http://test.com/path")
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8272702 Resolving URI relative path with no / may lead to incorrect toString
-
- Closed
-