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

Do not always throw exceptions to propagate information about failed validations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Models Validation Impl 1.0.0
    • Extensions
    • None

    Description

      Right now the o.a.s.models.validation.impl.ModelValidationImpl will always throw an InvalidResourceException in case the underlying resource is not valid (according to Sling Validation). With the advent of different severities per issue (SLING-5373) this seems a bit too strict because some validators could be used just for informational purposes. Those validations should not prevent the Sling Model from being instantiated.

      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: