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

Improve error message for batch handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • V2 2.0.6
    • V2 2.0.7
    • odata2-core
    • None

    Description

      Improve error message for cases like:
      Header  : multipart/mixed; boundary=batch_01"

      --batch_01
      Content-Type: application/http
      Content-Transfer-Encoding: binary
       
      GET SomeData HTTP/1.1
       
       
      --batch_01
      Content-Type: application/http
      Content-Transfer-Encoding: binary
       
      GET SomeData HTTP/1.1
       
       
      --batch_02
      Content-Type: application/http
      Content-Transfer-Encoding: binary
       
      GET SomeData HTTP/1.1
       
       
      --batch_01--
      

      which actual results in

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

      Attachments

        Activity

          People

            mirbo mibo
            mirbo mibo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: