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

[jira] [Created] (OLINGO-382) Post without key issue in JPA

Chitresh Chauhan created OLINGO-382:
---------------------------------------

             Summary: 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>yoshiko.kakuji@jateco.jp</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)