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

Michael Bolz commented on OLINGO-378:
-------------------------------------

Hi all,

I reproduced the reported behavior with actual {{2.0.3-SNAPSHOT}} and following 
request:
* Start *JPA Reference Scenarion* and generated sample data
* Do a {{PUT}} on 
http://localhost:8080/SalesOrderProcessing.svc/SalesOrders(2L)/SalesOrderLineItemDetails(liId=10L,soId=2L)
 with following JSON payload:
{code}
{
  "amount": "190.3",
  "delivered": true,
  "discount": "1.19",
  "mID": "112",
  "quantity": 19,
  "liId": "10",
  "soId": "2"
}
{code}

This results (for my sample) in an **400 - Bad Request** with *"The request is 
not supported by the processor."* message.

Similar sample with service from odata.org:

{{PUT}} on 
"http://services.odata.org/(S(gudmdo1bmnprcdp5mtjh1g41))/V2/OData/OData.svc/Categories(0)/Products(0)"
 with JSON payload:
{code}
{
    "ID": 0,
    "Name": "Bread",
    "Description": "Whole grain bread",
    "DiscontinuedDate": null,
    "Rating": 1,
    "Price": "2.5"
}
{code}

results in a *204 - No Content* (and updated entity).

Kind regards,
Michael

> PUT operation on navigation link
> --------------------------------
>
>                 Key: OLINGO-378
>                 URL: https://issues.apache.org/jira/browse/OLINGO-378
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.0
>            Reporter: Chitresh Chauhan
>            Assignee: Christian Amend
>            Priority: Minor
>
> Hi,
> 1. do a read operation on a sales order item for a sales order header
> and use it as the request body for update operation. Make the required
> changes in the request body.
> 2. Do a PUT operation with the request body as created above"
> Describe the problem
> Sent PUT to update the following child entity as requested:
> https://localhost:8083/gateway/odata/SAP/ESPMSERVICE;v=1/SalesOrderHeade
> rs('18')/SalesOrderItemDetails(ItemNumber=1801,SalesOrderId='18')
> Expected Result:
> "The sales order line item shall get updated under the sales order
> header. User shall get the http response code as 204."
> Instead returned the following error:
> 400 BAD REQUEST
> <error
> xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";>
> <code />
> <message xml:lang="en-US">The request is not supported by the
> processor.</message>
> </error> .
> Is it possible to get this supported.
> Thanks.
> BR,
> Chitresh



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to