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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.1.SP9
    • 3.11.0.Final, 4.5.2.Final
    • None
    • None
      • Unzip the reproduce
      • Configure the reproduce according to README.md
      • Execute.
    • Hide

      If changes the order of test it works fine.

      Show
      If changes the order of test it works fine.

      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:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: