only the admins should be allowed to do index maintenance #94

anandology opened this Issue Nov 15, 2010 · 0 comments

1 participant


couchdb-lucene index maintanance operations like _optimize, _expunge and _cleanup should be accessible only with the admin credentials.

For exampe, my couchdb database doesn't allow me do _compact without admin credentials, but allowes me to _optmize couchdb-lucene index.

$ curl -X POST http://localhost:15984/editions/_compact
{"error":"unauthorized","reason":"You are not a db or server admin."}
$ curl -X POST http://localhost:15984/editions/_fti/_design/seeds/by_seed/_optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment