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

Allow empty parameters for actions and action imports when there is no non binding parameter defined

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.7.1
    • None
    • odata4-server
    • None

    Description

      According to the OData v4 spec, section 11.5.5.1:
      4.01 services MUST support invoking actions with no non-binding parameters and parameterless action imports both without a request body and with a request body representing no parameters, according to the particular format. Interoperable clients SHOULD always include a request body, even when invoking actions with no non-binding parameters and parameterless action imports.
      When action does not have any non binding parameters, the client sends an empty request body(AbstractODataInvokeRequest.getPayload()).
      Olingo's server part, however, rejects an empty request body (see ODataJsonDeserializer.parseJsonTree(InputStream)).

      Attachments

        Activity

          People

            ramya.vasanth Ramya
            ramya.vasanth Ramya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: