Opened 9 years ago

Closed 6 years ago

#11868 closed defect (wontfix)

CouchDBRestStore Delete Not Working (409)

Reported by: andrealp99 Owned by: Kris Zyp
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.5
Keywords: couchdb Cc: alan.plante@…
Blocked By: Blocking:

Description

When you delete an item from a CouchDBRestStore and then save, the resulting DELETE call to the CouchDB does not contain either ?rev='revNumberhere'or an etag with the revision number. See http://wiki.apache.org/couchdb/HTTP_Document_API#DELETE. This results in a 409 conflict response from Couch.

I've attached a test below - you'll have to update the dojo paths. There is a list of steps at the top of the page.

Here's the info for the Couch setup: Database: bugtest Documents: {

"_id": "9b30c954174f65a2351af18a760000bc", "type": "person", "firstname": "John", "lastname": "Doe"

} and {

"_id": "9b30c954174f65a2351af18a76000a92", "_rev": "1-5ed1da20e4bf19810253d42f645ae96f", "type": "person", "firstname": "Foo", "lastname": "Bar"

}

A view in /bugtest/_design/bugtest/_view/getPeople: function(doc) {

if (doc.type == "person") {

emit(doc._id, doc);

}

} Issue was seen on both FFX 3.6.10 and IE8, running on XP.

Attachments (1)

CouchDBRestStoreDeleteBug.html (3.0 KB) - added by andrealp99 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by andrealp99

comment:1 Changed 9 years ago by Adam Peller

Component: GeneralDojoX Data
Owner: changed from anonymous to Kris Zyp

comment:2 Changed 6 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at https://github.com/kfranqueiro/dojo-smore.

Note: See TracTickets for help on using tickets.