Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3.1 Release
-
None
-
JDK 1.5, Linux
Description
for validating the URL "http://somewhere.com/pathxyz/file(1).html", it returns false.
According to the RFC,
uric = reserved | unreserved | escaped
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
"$" | ","
unreserved = alphanum | mark
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" |
"(" | ")"
"(", ")" belongs to mark and is a valid part of uric.
Test case:
UrlValidator validator = new UrlValidator(
{"http","https"}, UrlValidator.ALLOW_2_SLASHES);
validator.isValid("http://somewhere.com/pathxyz/file(1).html");
Attachments
Issue Links
- is duplicated by
-
VALIDATOR-285 isValid returns false for URLs with parentheses
- Closed
-
VALIDATOR-251 url with brackets is not validated thru URLvalidator class.
- Resolved