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

OData V2: Allow Content-id referencing across changesets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • odata2-core
    • None

    Description

      Currently in V2 we do not allow content-id referencing across changesets.
      Now content-id referenced must be unique for the entire batch request
      Sample batch payload
      --batch_005056A5-09B1-1ED1-BF82-409B26A80300
      Content-Type: multipart/mixed; boundary=changeset_005056A5-09B1-1ED1-BF82-409B26A80301

      --changeset_005056A5-09B1-1ED1-BF82-409B26A80301
      Content-Type: application/http
      Content-Transfer-Encoding: binary

      POST Rooms HTTP/1.1
      Content-Type: application/atom+xml
      Content-ID: 2

      <entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
      <content type="application/xml">
      <m:properties>
      <d:Id></d:Id>
      <d:Name>Room 1</d:Name>
      <d:Seats>1</d:Seats>
      <d:Version>1</d:Version>
      </m:properties>
      </content>
      </entry>

      changeset_005056A5-09B1-1ED1-BF82-409B26A80301

      --batch_005056A5-09B1-1ED1-BF82-409B26A80300
      Content-Type: application/http
      Content-Transfer-Encoding: binary

      GET $2/nr_Building HTTP/1.1

      batch_005056A5-09B1-1ED1-BF82-409B26A80300

      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: