Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1753

Bean validation handler should not swallow ConstraintDefinitionException, ConstraintDeclarationException nor GroupDefinitionException

XMLWordPrintable

      Resteasy default implementation of org.jboss.resteasy.spi.validation.GeneralValidator handles all javax.validation.ValidationException the same way wrapping them in a org.jboss.resteasy.api.validation.ResteasyViolationException which is a subclass of javax.validation.ConstraintViolationException.

      So it is not possible to handle any other javax.validation.ValidationException subtypes such as javax.validation.ConstraintDeclarationException in a dedicated ExceptionMapper<ConstraintDeclarationException> since the exception is not correctly thrown.

        1. AbstractValidatorContextResolver.java
          4 kB
          Ronald Sigal
        2. ResteasyViolationExceptionMapper.java
          1 kB
          Ronald Sigal
        3. ValidationExceptionMapper.java
          1 kB
          Ronald Sigal
        4. ValidationExceptionMapper.java
          1 kB
          Ronald Sigal

              rsigal@redhat.com Ronald Sigal
              nicones Nicolas NESMON (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: