Fixed
Details
Assignee
Hardy FerentschikHardy FerentschikReporter
Marcel StörMarcel StörBug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
Gunnar MorlingHardy FerentschikMarcel StörOriginal estimate
Time tracking
No time logged0.5h remainingComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Hardy Ferentschik
Hardy FerentschikReporter
Marcel Stör
Marcel StörBug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
Gunnar Morling
Hardy Ferentschik
Marcel Stör
Original estimate
Time tracking
No time logged0.5h remaining
Components
Fix versions
Affects versions
Priority
Created May 3, 2014 at 8:44 PM
Updated October 22, 2014 at 2:50 PM
Resolved October 22, 2014 at 7:22 AM
The implementation of the URL validator is really odd because it basically relies on the constructor of
java.net.URL
. This has been discussed here before (HV-406, HV-513) and I understand and accept there's no perfect solution.However, I'd expect that this be clearly stated in the Javadoc of the
@URL
constraint. IMO despite https://hibernate.atlassian.net/browse/HV-437#icft=HV-437 this is still not the case. I see 2 obvious issues:Type Javadoc claims that "Per default the constraint verifies that the annotated value conforms to RFC2396". Doesn't https://hibernate.atlassian.net/browse/HV-513#icft=HV-513 prove that statement wrong? If RFC2396 were really supported wouldn't the validator have to accept URLs such as
ldap://...
orsip://...
?The annotation attribute Javadoc contradicts the type Javadoc. Because of 1. a statement like "Per default any protocol is allowed" (
port
attribute) is not correct.