[
http://opensource.atlassian.com/projects/hibernate/browse/HV-513?page=com...
]
Hardy Ferentschik commented on HV-513:
--------------------------------------
The current implementation is intended to cover simple cases like _file_, _http_, _ftp_
which are supported by all JVMs. There is no claim to cover all protocols. I think it
makes more sense to have specific constraint for that, maybe offering different/better
configuration depending on the protocol type. Contributions are always welcome :-)
URL validator rejects protocols the JVM does not know about
-----------------------------------------------------------
Key: HV-513
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-513
Project: Hibernate Validator
Issue Type: Bug
Components: validators
Affects Versions: 4.1.0.Final, 4.2.0.Final
Reporter: Pasi Eronen
URLValidator uses java.net.URL(String) constructor to check whether an URL is valid.
However, this constructor rejects a protocol unless the JVM has
an URLStreamHandler for it.
So perfectly valid URLs such as "ldap://localhost/ou=Foo" and
"sip:alice@example.com" are rejected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira