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

Chandan V.A commented on OLINGO-123:
------------------------------------

Just one observation.

The method readLink in class 
org.apache.olingo.odata2.core.ep.consumer.XmlEntryConsumer checks whether the 
link tag is an end tag (line 234) and if that is true it adds the link 
information to entry metadata else it proceeds with parsing the inline entries 
and never returns back to add the link information to the entry metadata.

> <LINK> Tag information does not appear in EntryMetadata
> -------------------------------------------------------
>
>                 Key: OLINGO-123
>                 URL: https://issues.apache.org/jira/browse/OLINGO-123
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 1.1.0
>            Reporter: Chandan V.A
>
> When I execute a HTTP POST request on an Entity Collection that has inline 
> entries; the Entry Metadata for the Entity Collection containing the inline 
> entries does not contain any values for association URI.
> For example consider the below request
> HTTP POST /SalesOrderProcessing.svc/Customers
> <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"; 
> xml:base="http://localhost:8080/olingo-odata2-jpa-processor-ref-web-incubating/SalesOrderProcessing.svc/";>
> <link href="Customers(433L)/SalesOrderDetails" 
> rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/SalesOrderDetails";
>  title="SalesOrderDetails" type="application/atom+xml;type=feed">
> <m:inline>
>    ----
>    ---- 
> </m:inline>
> </link>
>  ---- 
> ----
> </entry>
> The details about the Link that has inline content is not available as part 
> of EntryMetadata.getAssociationURI('SalesOrderDetails'). However if I add 
> another link tag to the same request with no inline content then the link 
> information appears in EntryMetadata.getAssociationURI('SalesOrderDetails'). 
> Can you please check this. 
> Regards
> Chandan



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to