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

Cannot create an Entry that is related to another one implicitly through the relationship implied in the URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • V2 1.0.0, V2 1.1.0
    • V2 1.1.0
    • odata2-jpa
    • None

    Description

      Trying to create an entry with the same setup as described in https://issues.apache.org/jira/browse/OLINGO-49 created the entry but failed to set the relation, thus leaving the model in inconsistent state.

      Sample request:
      HTTP POST <path>/As(1)/b

      "

      {\"aId\":0}

      "

      As a result the a.b is null.

      The createView's startEntitySet property and the id in the URI are ignored and then a normal create for the depending Entiity is performed without considering the context of its owner.

      For use case reference: http://www.odata.org/documentation/odata-v2-documentation/operations/#24_Creating_new_Entries
      , the section that describes how to to create an Entry that is related to another one implicitly through the relationship implied in the URL.

      Attachments

        Issue Links

          Activity

            People

              chandan.v.a Chandan V.A
              shturec Georgi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: