clariontools opened a new issue #878: /_all_docs with keys=[] on _users using POST or GET returns error not_found for valid keys URL: https://github.com/apache/couchdb/issues/878 <!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> Expected _all_docs request with keys=[] using either POST or GET to return matches with response for valid _users _id when admin-only databases, such as _users when accessed with admin's privileges. ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> When requesting _all_docs with valid keys=[] from _users when accessed with admin's privileges, each key in the request is returned with the response "error": "not_found". all_docs with keys=[] works as expected on non-admin-only databases, so it appears to affect at very least the _users db and possibly all admin-only dbs when accessed with admin privileges. ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Gather one or more _id key(s) from your _user db 2. With the key(s) do a POST or GET with the keys hitting the _all_docs endpoint. 3. Example with GET .../_users/_all_docs??keys=["org.couchdb.user:jan"] and/or POST with the appropriate JSON object as per _all_docs documentation. 4. The interesting thing is that a GET with ../_users/_all_docs?key="org.couchdb.user:jan" (not keys with array but single key) does "get" the job done. ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> Trying to validate multiple _users ids (keys) exist with a single call, also be able to take the validated _users and call bulkDocs to update each user. It is very possible that bulkDocs also has a similar issue when dealing with the admin-only _users db, but have not gotten that far yet and would submit a different issue for that problem. ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: CouchDB 2.0 * Browser Name and version: * Operating System and version (desktop or mobile): * Link to your project: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
