Issue 15919
@HttpURI should also be applied to setters
15919
Reporter: kbraak
Assignee: fmendez
Type: Improvement
Summary: @HttpURI should also be applied to setters
Priority: Major
Resolution: Invalid
Status: Closed
Created: 2014-06-11 13:59:32.857
Updated: 2014-07-01 15:15:54.015
Resolved: 2014-07-01 15:15:53.972
Description: We use @HttpURI on Dataset.homepage and Dataset.logoUrl for example, to ensure the URI is absolute, and starts with 'http' or 'https'.
This annotation is only on the getter, not on the setter. Therefore, the validation error only occurs when trying to persist the object.
If we applied the validation on the setter, it would surface the problem sooner, and make it easier to spot.]]>
Author: fmendez@gbif.org
Comment: Validation annotations are set for getter method and works like that, a new test case was created to validate it: https://github.com/gbif/registry/commit/03cf3659e1912d4f8cb77ad9a2c85fe369ea7975
Created: 2014-07-01 15:15:54.013
Updated: 2014-07-01 15:15:54.013