Wrong handling of _security
Closed this issue · 1 comments
rakoo commented
When the _security
doc of a database is saved through Database#save_doc, a KeyError is raised. Here is the bottom of the stacktrace (the rest is irrelevant to couchdbkit, only specific to my application) :
File "/usr/lib/python2.7/site-packages/couchdbkit/client.py", line 485, in save_doc
doc1.update({'_id': res['id'], '_rev': res['rev']})
KeyError: 'id'
This is because PUTing the _security
doc in a database only returns {"ok": True}
which is not parsable by this line of code.
Is there a workaround for this ?
muellermichel commented
strange, I'm experiencing this now with couchdbkit 0.6.5; Is it possible that there has been some regression?