[
https://issues.apache.org/jira/browse/SLING-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299983#comment-15299983
]
Konrad Windszus commented on SLING-5749:
----------------------------------------
Fixed with [r1745478|https://svn.apache.org/r1745478].
> Validation: IAE thrown in case validation is triggered on a SyntheticResource
> -----------------------------------------------------------------------------
>
> Key: SLING-5749
> URL: https://issues.apache.org/jira/browse/SLING-5749
> 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
> {{SyntheticResource}} 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)