doctrine / couchdb-client

CouchDB Client library
MIT License
122 stars 68 forks source link

FIX: Query parameters are unnecessarily json_encoded #22

Closed martinsb closed 8 years ago

martinsb commented 10 years ago

According to CouchDB documentation, there are only a few REST URL parameters that are required to be JSON-encoded. See http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options This commit introduces a structure containing the names of those parameters which is checked upon building the HTTP query.

xrstf commented 10 years ago

This just costed me two hours before I realized that startkey_docid was JSON encoded by Doctrine and hence did not work as expected. So IMHO this is more than a nice-to-have, it's an important bugfix to make querying views work.

SteveTalbot commented 9 years ago

+1

Just encountered this and agree with @xrstf that it's a bug.

hatsebutz commented 9 years ago

+1

beberlei commented 8 years ago

Fixed in 10e82118f096f29fcb83119b9205beca60c06e69