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

JPA Batch does not support creating new instance and link this to an existing one in one change set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V2 2.0.0
    • V2 2.0.1
    • odata2-core, odata2-jpa
    • None

    Description

      Steps necessary to reproduce this:

      (1) Create new instance (including client generated GUID primary key)
      (2) Link this instance to another already existing instance of a different entity

      While the exact same requests work fine when executed as single requests, the second one fails when executed in batch. I debugged into the olingo code and the exception is thrown at org.apache.olingo.odata2.jpa.processor.core.access.data.JPALink:276
      It looks like the wrong UriInfo is passed into that function. At first glance, this function receives the UriInfo from the outer batch request instead of the info for the link request.

      Attachments

        Activity

          People

            chrisam Christian Amend
            bjnwagner Björn Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: