Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Validation 1.0.0
-
None
Description
The stack trace whenever the validation is triggered on a NonExistingResource looks like this
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
...
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.
Attachments
Issue Links
- is cloned by
-
SLING-5749 Validation: IAE thrown in case validation is triggered on a SyntheticResource
- Closed