Github user willholley commented on the pull request:
https://github.com/apache/couchdb-chttpd/pull/33#issuecomment-139565250
in my tests, bulk_get doesn't return the list of revisions correctly:
$ curl http://localhost:15984/willtest -XPUT
{"ok":true}
$ curl http://localhost:15984/willtest -XPOST -H
'Content-Type:application/json' --data-binary '{"_id":"foo"}'
{"ok":true,"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}
$ curl 'http://localhost:15984/willtest/foo?revs=true
{"_id":"foo","_rev":"1-967a00dff5e02add41819138abb3284d","_revisions":{"start":1,"ids":["967a00dff5e02add41819138abb3284d"]}}
$ curl http://localhost:15984/willtest -XPOST -H
'Content-Type:application/json' --data-binary
'{"_id":"foo","_rev":"1-967a00dff5e02add41819138abb3284d","generation":2}'
{"ok":true,"id":"foo","rev":"2-0cb4bbdce165620d03a15eff82d8712a"}
$ curl 'http://localhost:15984/willtest/foo?revs=true'
{"_id":"foo","_rev":"2-0cb4bbdce165620d03a15eff82d8712a","generation":2,"_revisions":{"start":2,"ids":["0cb4bbdce165620d03a15eff82d8712a","967a00dff5e02add41819138abb3284d"]}}
$ curl 'http://localhost:15984/willtest/_bulk_get' -H
'Content-Type:application/json' --data-binary
'{"docs":[{"id":"foo","rev":"2-0cb4bbdce165620d03a15eff82d8712a"}],"revs":true}'
-H 'Accept: application/json'
{"results": [{"id": "foo", "docs":
[{"ok":{"_id":"foo","_rev":"2-0cb4bbdce165620d03a15eff82d8712a","generation":2}}]}]}
In that last response, I'd expect a "_revisions" field similar to the
explicit request for /foo?revs=true.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---