Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5674

Validation: IAE thrown in case validation is triggered on a NonExistingResource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Validation 1.0.0
    • Validation 1.0.0
    • Validation
    • 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

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: