Opened 8 years ago

Closed 8 years ago

#13766 closed defect (invalid)

JsonRestStore regression

Reported by: Jean-Rubin Leonard Owned by: Kris Zyp
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.6.1
Keywords: jsonRestStore Response Update Location Cc:
Blocked By: Blocking:

Description

I have a piece of code that used to work for which I have noted a regression. I have a JSONRestStore to which my server returns a response as an answer to a post when it is summoned. I return the whole of my response in the body. I also return a location header with the ID that must be assigned to the item that has been created.

The item's id is not updated with the data that comes from the server however. This feature used to work. This is what's returned in the response: {"node_id":"1105","node_type":"ledger","node_type_id":"BO200021","node_name":"new plates"}

These are my headers (edited for clarity) Date Mon, 29 Aug 2011 02:21:03 GMT Server Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 PHP/5.3.4 X-Powered-By PHP/5.3.4 Location /tree/1105 Content-Length 90 Keep-Alive timeout=5, max=99 Connection Keep-Alive Content-Type application/json; charset=UTF-8 Thanks for fixing.

Change History (3)

comment:1 Changed 8 years ago by Jared Jurkiewicz

Owner: changed from Jared Jurkiewicz to Kris Zyp

comment:2 Changed 8 years ago by Jean-Rubin Leonard

I had incrementalUpdates on and the function I was using was calling getIdentity so therefore returning always the client side id. I had to cook something up to return the server side when saving to the server. This one can be closed. Thanks, JR

comment:3 Changed 8 years ago by Jared Jurkiewicz

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.