You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2016/04/20 22:03:25 UTC

[jira] [Commented] (OLINGO-929) Update Entry fails when containing deferred links

    [ https://issues.apache.org/jira/browse/OLINGO-929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250595#comment-15250595 ] 

Michael Bolz commented on OLINGO-929:
-------------------------------------

Hi [~tobias.stolzenberger],

The problem it that in the {{ODataEntityParser}} the whole link (without service root) is tried to be parsed as one path segment which then fails.
I created [this branch for a fix|https://git1-us-west.apache.org/repos/asf?p=olingo-odata2.git;a=shortlog;h=refs/heads/OLINGO-929_FixForDeferredLink].
Can you please test if it works for your case and give feedback?

Best Regards, Michael

> Update Entry fails when containing deferred links
> -------------------------------------------------
>
>                 Key: OLINGO-929
>                 URL: https://issues.apache.org/jira/browse/OLINGO-929
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.6
>            Reporter: Tobias Stolzenberger
>            Assignee: Michael Bolz
>         Attachments: UpdateEntryErrorStacktrace.txt
>
>
> 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:
> {code}
> <?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>
> {code}
> This is the relevant payload- snipped that causes the problem:
> {code}
> <?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>
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)