You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chandan V.A (JIRA)" <ji...@apache.org> on 2014/07/29 10:09:39 UTC

[jira] [Resolved] (OLINGO-383) JPA post with duplicate key

     [ https://issues.apache.org/jira/browse/OLINGO-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan V.A resolved OLINGO-383.
--------------------------------

    Resolution: Not a Problem

> JPA post with duplicate key
> ---------------------------
>
>                 Key: OLINGO-383
>                 URL: https://issues.apache.org/jira/browse/OLINGO-383
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.0
>            Reporter: Chitresh Chauhan
>            Priority: Minor
>
> Hi,
> I tried to do a post for a JPA URL with duplicate entry.
> When i executed it i received 500 internal server error.
> Where i was expecting a proper message that duplicate entry can perform
> POST. something like that.
> https://dewdftv01777.dhcp.pgdev.sap.corp:8083/gateway/odata/SAP/ESPMSERV
> ICE;v=1/Products
> POST Body:
> <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="https://dewdftv01777.dhcp.pgdev.sap.corp:8083/gateway/odata/SA
> P/ESPMSERVICE;v=1/">
> <id>https://dewdftv01777.dhcp.pgdev.sap.corp:8083/gateway/odata/SAP/ESPM
> SERVICE;v=1/Products('HT-6132')</id>
> <title type="text">Products</title>
> <updated>2014-07-25T07:20:34.709+02:00</updated>
> <category term="com.sap.espm.model.Product"
> scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme">
> </category>
> <link href="Products('HT-6132')" rel="edit" title="Product">
> </link>
> <link href="Products('HT-6132')/SupplierDetails"
> rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Suppl
> ierDetails" title="SupplierDetails"
> type="application/atom+xml;type=entry">
> </link>
> <content type="application/xml">
> <m:properties>
> <d:Category>TV flat screens</d:Category>
> <d:CategoryName>TV flat screens</d:CategoryName>
> <d:CurrencyCode>EUR</d:CurrencyCode>
> <d:DimensionDepth>0.2300</d:DimensionDepth>
> <d:DimensionHeight>0.7910</d:DimensionHeight>
> <d:DimensionUnit>m</d:DimensionUnit>
> <d:DimensionWidth>1.2800</d:DimensionWidth>
> <d:LongDescription>41 Zoll, 1366x768 Pixel, 16:9, HDTV
> ready</d:LongDescription>
> <d:Name>Flat Watch HD41</d:Name>
> <d:PictureUrl>HT-6132.jpg</d:PictureUrl>
> <d:Price>899.990</d:Price>
> <d:ProductId>HT-6132</d:ProductId>
> <d:QuantityUnit>EA</d:QuantityUnit>
> <d:ShortDescription>41 Zoll, 1366x768 Pixel, 16:9, HDTV
> ready</d:ShortDescription>
> <d:SupplierId>100000048</d:SupplierId>
> <d:Weight>1.800</d:Weight>
> <d:WeightUnit>KG</d:WeightUnit>
> </m:properties>
> </content>
> </entry>
> Please look into this.
> Thanks.
> BR,
> Chitresh



--
This message was sent by Atlassian JIRA
(v6.2#6252)