[ 
https://issues.apache.org/jira/browse/SLING-5749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Munteanu closed SLING-5749.
----------------------------------

> 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.4.14#64029)

Reply via email to