karishma-tirthani / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Put fails for DataServiceVersion 2.0 (Json) #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Request trace explains the problem:

{
  "request": {
    "method": "POST",
    "url": "http://localhost:8080/databinding/odata.svc/Products",
    "headers": [
      {
        "name": "MaxDataServiceVersion",
        "value": "2.0"
      },
      {
        "name": "Content-Type",
        "value": "application/json;odata=verbose"
      },
      {
        "name": "Accept",
        "value": "application/json"
      },
      {
        "name": "DataServiceVersion",
        "value": "2.0"
      }
    ],
    "postData": {
      "mimeType": "application/json;odata=verbose",
      "text": "{\"name\":\"New Product\",\"releaseDate\":\"\\/Date(1337690793987)\\/\",\"rating\":1,\"price\":\"99.99\"}"
    }
  },
  "response": {
    "status": 500,
    "statusText": "Internal Server Error",
    "httpVersion": "HTTP/1.1",
}

Original issue reported on code.google.com by stephan....@googlemail.com on 13 Jun 2012 at 12:49

GoogleCodeExporter commented 8 years ago
Can by verified by

   org.odata4j.test.integration.issues.Issue184Test

Original comment by stephan....@googlemail.com on 13 Jun 2012 at 12:58