[
https://issues.apache.org/jira/browse/OLINGO-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chandan V.A updated OLINGO-123:
-------------------------------
Description:
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
was:
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
> <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)