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

Patch response codes not found, bad request, conflict are not propagated in the response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.5.1.Final, 4.0.0.Beta3
    • 4.0.0.Beta2, 3.5.0.Final
    • None
    • None

    Description

      rfc5789 defines response codes returned by server for several situations:

      1) Malformed patch document. When the server determines that the patch document provided by the client is not properly formatted, it SHOULD return a 400 (Bad Request) response.
      Current response - 500
      Test: https://github.com/resteasy/Resteasy/pull/1437/files#diff-ad7e017dfe2da2f8930e668c932e1e3bR63

      2) Client sends valid Patch request with with valid format descriptor, but the resource doesn't exists. Server should return 404 (Not found).
      Current response - 500
      Test: https://github.com/resteasy/Resteasy/pull/1437/files#diff-ad7e017dfe2da2f8930e668c932e1e3bR96

      3) Client sends Patch request to patch property of the object which doesn't exists. Server should return 409 (Conflict).
      Current response - 500
      Test: https://github.com/resteasy/Resteasy/pull/1437/files#diff-ad7e017dfe2da2f8930e668c932e1e3bR116

      Note: Please remove '@Category(ExpectedFailing.class)' line from the tests, once it is fixed.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: