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/05/25 12:53:13 UTC

[jira] [Resolved] (SLING-5749) Validation: IAE thrown in case validation is triggered on a SyntheticResource

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

Konrad Windszus resolved SLING-5749.
------------------------------------
    Resolution: Fixed

> 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)