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

odata2 batch processing behavior's change between version 2.0.0 and a newer version

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Done
    • V2 2.0.1, V2 2.0.2, V2 2.0.3, V2 2.0.4
    • None
    • odata2-core
    • None

    Description

      We noticed the behavior change in the batch processing between V2 2.0.0 and a later version from 2.0.1 including the current 2.0.5-SNAPSHOT.

      The batch request that is accepted by the 2.0.0 service is no longer accepted when a later version of library is used.

      Concretely, when using olingo's odata2 my-car-service service, using the batch request message (attached in this ticket), the service returns the the following error when using a later version of the library.

      HTTP/1.1 400 Bad Request
      Content-Type: application/xml
      DataServiceVersion: 1.0
      Date: Thu, 23 Jul 2015 14:14:16 GMT
      Content-Length: 203
      Server: Jetty(8.1.14.v20131031)

      <?xml version='1.0' encoding='UTF-8'?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en">Invalid request line 'GET' at line '7'.</message></error>

      It seems to be something has been changed in the way the batch's content is processed. It is not clear if this was an intended behavior change or unintended.

      Please see the attached odata2-batch-reqs.tar.gz file which contains the request files and a short description.

      Attachments

        1. batchCarService.batch.zip
          0.9 kB
          mibo
        2. batch-req-ref-italy.tar.gz
          3 kB
          Akitoshi Yoshida
        3. odata2-batch-reqs.tar.gz
          2 kB
          Akitoshi Yoshida

        Activity

          People

            mirbo mibo
            ay Akitoshi Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: