Affects: 4.2.x
Execute below test case and verify the result:
public void testURIComponentBuilder(){
String uri = "urn:ietf:wg:oauth:2.0:oob";
UriComponentsBuilder redirectUriBuilder = UriComponentsBuilder.fromUriString(uri);
redirectUriBuilder.replaceQuery(null);
redirectUriBuilder.fragment(null);
redirectUriBuilder.build().toUriString();
assertThat(redirectUriBuilder.toUriString()).isEqualTo(uri);
}
Expected result: urn:ietf:wg:oauth:2.0:oob
Actual result: urn:
Affects: 4.2.x
Execute below test case and verify the result:
Expected result:
urn:ietf:wg:oauth:2.0:oobActual result:
urn: