-
Bug
-
Resolution: Fixed
-
P4
-
9.0.4, 10, 11
-
x86_64
-
windows
FULL PRODUCT VERSION :
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
jdk 9.0.4
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.248]
A DESCRIPTION OF THE PROBLEM :
HttpRequest httpGet = HttpRequest.newBuilder()
.uri(new URI("http://data.matricula-online.eu/de/oesterreich/st-poelten/eggenburg/01%252F03/")
.GET()
.build();
httpClient.send(httpGet, HttpResponse.BodyHandler.asByteArray());
The URI contains "01%252F03"
this is changed to "01%2F03"
before it is sent over the line. This results in Error 404 from the server.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
URI encoding should not change
ACTUAL -
The URI contains "01%252F03"
this is changed to "01%2F03"
REPRODUCIBILITY :
This bug can be reproduced always.
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
jdk 9.0.4
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.248]
A DESCRIPTION OF THE PROBLEM :
HttpRequest httpGet = HttpRequest.newBuilder()
.uri(new URI("http://data.matricula-online.eu/de/oesterreich/st-poelten/eggenburg/01%252F03/")
.GET()
.build();
httpClient.send(httpGet, HttpResponse.BodyHandler.asByteArray());
The URI contains "01%252F03"
this is changed to "01%2F03"
before it is sent over the line. This results in Error 404 from the server.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
URI encoding should not change
ACTUAL -
The URI contains "01%252F03"
this is changed to "01%2F03"
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8198716 Preserve URI component escaped octets when converting to HTTP headers
-
- Resolved
-