Conflict error updating records
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Macaco |
Fix Released
|
Low
|
Manuel de la Peña | ||
desktopcouch |
Fix Released
|
Medium
|
Stuart Langridge |
Bug Description
Hello,
The following code will raise a Conflict exception when executed when there is no reason for it to occur:
from desktopcouch.
from desktopcouch.
test_data = {
'_id': '6b8189fd34e844
'name' : 'Manuel',
'surname': ' de la Pena',
'record_type':'http://
}
record = Record(test_data)
db = CouchDatabase(
db.put_
db.delete_
db.put_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
self.
File "/usr/lib/
resp, data = self.resource.
File "/usr/lib/
**params)
File "/usr/lib/
raise ResourceConflic
couchdb.
I believe the problem is related with the couchdb library when trying to update a new document in the database. The current version in my system is 0.6. I have attached a patch that solves the problem although I would no recommend to use it since it adds an extra web request to delete the current doc in the database. I have contacted the couchdb guys regarding the problem. The related bug report can be found here: http://
Although the owner of the bug is not desktopcouch perse, it will be nice to provide a temp solution or at least let developers know.
Related branches
Changed in desktopcouch: | |
assignee: | nobody → Stuart Langridge (sil) |
status: | New → Triaged |
Changed in macaco: | |
status: | New → Triaged |
status: | Triaged → Invalid |
importance: | High → Undecided |
Changed in desktopcouch: | |
importance: | Undecided → Medium |
Changed in macaco: | |
status: | Invalid → Triaged |
importance: | Undecided → Low |
Changed in desktopcouch: | |
status: | Triaged → Fix Released |
Changed in macaco: | |
status: | Triaged → Fix Released |
The correct bug post should be the following from Oct the first: http:// code.google. com/p/couchdb- python/ issues/ detail? id=93 the above mentioned bug has already merge by the python couchdb guys