Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18802

[GSS](7.2.z) RESTEASY-2522 - Inconsistent response code when calling JAXRS-based endpoint with BeanValidation Constraints

XMLWordPrintable

    • +
    • Hide

      If changes the order of test it works fine.

      Show
      If changes the order of test it works fine.
      • Unzip the reproduce
      • Configure the reproduce according to README.md
      • Execute.

      The REST endpoint with BeanValidation is returning HTTP status 500 to a invalid data instead 400. It just happens to Arquilian-based tests. I'm attaching the reproducer to cover this behavior.

      The problem is the request that return HTTP status 500 generates a ConstraintViolationException instead a ResteasyViolationException.

            rsigal@redhat.com Ronald Sigal
            rhn-support-rhsilva Rhuan Rocha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: