Opened 10 years ago
Closed 8 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: | [email protected]… |
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)
Change History (3)
Changed 10 years ago by
Attachment: | CouchDBRestStoreDeleteBug.html added |
---|
comment:1 Changed 10 years ago by
Component: | General → DojoX Data |
---|---|
Owner: | changed from anonymous to Kris Zyp |
comment:2 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.