Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1285

JPA processor returning wrong HTTP status code for DELETE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • V2 2.0.10
    • None
    • odata2-jpa
    • None

    Description

      In the function  build(final DeleteUriInfo deleteUriInfo, final Object deletedObject) of class org.apache.olingo.odata2.jpa.processor.core.ODataJPAResponseBuilderDefault  the response code 204 being returned.

      According to the OData 2 specification status code 200 should be returned.

      Quote from the specification.

      "Entries are deleted by executing an HTTP DELETE request against a URI that points at the Entry. If the operation executed successfully servers should return 200 (OK) with no response body."

      If the status code is not returned properly OData clients that strictly follow the OData specification, might behave unexpectedly, as after firing a DELETE request they will be expecting 200 response, and will get a 204 response.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shivasaxena Shiva Saxena
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: