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

Update Entry fails when containing deferred links

    XMLWordPrintableJSON

Details

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

    Description

      Hi,

      I'm using Olingo version 2.0.6 with JPA adapter. I'm sending an update entry request via HTTP POST which fails with this error message:

      <?xml version='1.0' encoding='UTF-8'?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en">Could not match segment: 'RootEntity1s('734f14ef-960e-463f-bc73-983147f94c6d')/ItemEntity1_1Details'.</message></error>
      

      This is the relevant payload- snipped that causes the problem:

      <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      <atom:entry ...>
      ...
      <m:properties>
      ...
      </atom:content>
      <atom:id>https://hepindustrymobility1-industrymobility2.neo.ondemand.com:443/com.sap.icmobile.demo.application/odata/referenceservice/RootEntity1s('734f14ef-960e-463f-bc73-983147f94c6d')</atom:id>
      <atom:link href="RootEntity1s('734f14ef-960e-463f-bc73-983147f94c6d')" rel="edit" title="RootEntity1"/>
      ...
      </atom:entry>
      

      When removing the link from the payload than this message is processed properly.

      Attached is the corresponding error stack trace.

      I tested this payload on a SAP Netweaver Gateway system where these deferred links does not cause any problem.

      Regards,
      Tobias

      Attachments

        1. UpdateEntryErrorStacktrace.txt
          3 kB
          Tobias Stolzenberger

        Issue Links

          Activity

            People

              mirbo mibo
              tobias.stolzenberger Tobias Stolzenberger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: