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

Chitresh Chauhan closed OLINGO-382.
-----------------------------------

    Resolution: Invalid

> Post without key issue in JPA
> -----------------------------
>
>                 Key: OLINGO-382
>                 URL: https://issues.apache.org/jira/browse/OLINGO-382
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.0
>            Reporter: Chitresh Chauhan
>            Priority: Minor
>
> Hi,
> I tried to do Post for One Entity without giving the key property.
> I received the 500 internal server error.
> Where i expect proper error code.
> Please look into this issue.
> URL:https://dewdftv01777.dhcp.pgdev.sap.corp:8083/gateway/odata/SAP/ESPM
> SERVICE;v=1/Customers
> 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/Customers('100000023')</id>
> <title type="text">Customers</title>
> <updated>2014-07-25T07:49:50.676+02:00</updated>
> <category term="com.sap.espm.model.Customer"
> scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
> <link href="Customers('100000023')" rel="edit" title="Customer" />
> <content type="application/xml">
>  <m:properties>
> <d:City>Sapporo</d:City>
> <d:Country>JP</d:Country>
> <d:CustomerId></d:CustomerId>
> <d:DateOfBirth>1955-01-08T23:00:00</d:DateOfBirth>
> <d:EmailAddress>[email protected]</d:EmailAddress>
> <d:FirstName>Yoshiko</d:FirstName>
> <d:HouseNumber>51</d:HouseNumber>
> <d:LastName>Kakuji</d:LastName>
> <d:PhoneNumber>3206580974</d:PhoneNumber>
> <d:PostalCode>608611</d:PostalCode>
> <d:Street>Narashino-Shi</d:Street>
>  </m:properties>
> </content>
>  </entry>
> Thanks.
> BR,
> Chitresh



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

Reply via email to