UriBuilder.fragment() encodes certain "reserved sub-delimiters" as defined in RFC 3986
Open
- Dominant language
- Java
- Stars
- 400
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
A DESCRIPTION OF THE PROBLEM :
A fragment URI with reserved subdelimiters per RFC 3986 (excluding "+", "=" and "&") cannot be built with UriBuilder without encoding.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Example:
URI uri = UriBuilder.fromPath("
{arg1}
")
.fragment("
{arg2}
")
.scheme("http")
.host("example.org")
.build("test", "xywh=1,2,3,4");
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
[http://example.org/test#xywh=1,2,3,4](http://example.org/test#xywh=1,2,3,4)
ACTUAL -
[http://example.org/test#xywh=1%2C2%2C3%2C4](http://example.org/test#xywh=1%2C2%2C3%2C4)
REPRODUCIBILITY :
This bug can be reproduced always.
Contributor guide
Assessment
This issue has not been assessed yet.