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 2016/04/20 19:15:26 UTC
[jira] [Updated] (SLING-5674) Validation: IAE thrown in case
validation is triggered on a NonExistingResource
[ https://issues.apache.org/jira/browse/SLING-5674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-5674:
-----------------------------------
Summary: Validation: IAE thrown in case validation is triggered on a NonExistingResource (was: Validation: ISE thrown in case validation is triggered on a NonExistingResource)
> Validation: IAE thrown in case validation is triggered on a NonExistingResource
> -------------------------------------------------------------------------------
>
> Key: SLING-5674
> URL: https://issues.apache.org/jira/browse/SLING-5674
> Project: Sling
> Issue Type: Bug
> Components: Validation
> Affects Versions: Validation 1.0.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> The stack trace whenever the validation is triggered on a {{NonExistingResource}} looks like this
> {code}
> java.lang.IllegalArgumentException: ValueMap may not be null
> at org.apache.sling.validation.impl.ValidationServiceImpl.validateValueMap(ValidationServiceImpl.java:226)
> at org.apache.sling.validation.impl.ValidationServiceImpl.validate(ValidationServiceImpl.java:150)
> at org.apache.sling.validation.impl.ValidationServiceImpl.validate(ValidationServiceImpl.java:140)
> at
> ...
> {code}
> In case the validation model only contains optional validations this should be silently ignored, in all other cases there must be a reasonable {{ValidationFailure}} be returned instead of this exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)