You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2014/12/05 09:58:12 UTC

[jira] [Created] (SLING-4218) Throw exception for ValidationService.getValidationModel(...) if invalid validation model is found

Konrad Windszus created SLING-4218:
--------------------------------------

             Summary: Throw exception for ValidationService.getValidationModel(...) if invalid validation model is found
                 Key: SLING-4218
                 URL: https://issues.apache.org/jira/browse/SLING-4218
             Project: Sling
          Issue Type: Bug
          Components: Validation
    Affects Versions: Validation 1.0.0
            Reporter: Konrad Windszus
            Assignee: Konrad Windszus


Currently {{ValidationService.getValidationModel(...)}} always returns null either if there is no validation model found for the given resource type or the one being found is invalid.
To be able to distinguish those cases and also to ease fixing of invalid validation models I propose that this method is allowed to throw IllegalStateException's in case the matching validation model is invalid (i.e. if it contains an invalid Validator or does not have at least properties subnode or children subnode being set).
That should of course be explicitly stated in the Javadoc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)