You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Ian Danforth (JIRA)" <ji...@apache.org> on 2015/08/03 22:15:06 UTC

[jira] [Created] (COUCHDB-2766) 'stale' query param does not support quotes for valid strings

Ian Danforth created COUCHDB-2766:
-------------------------------------

             Summary: 'stale' query param does not support quotes for valid strings
                 Key: COUCHDB-2766
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2766
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: HTTP Interface
            Reporter: Ian Danforth



Without quotes:
[Mon, 03 Aug 2015 19:59:13 GMT] [info] [<0.5627.21>] 127.0.0.1 - - GET /logpro_db/_design/fetch/_view/robots_by_id/?stale=update_after 200
With quotes:
[Mon, 03 Aug 2015 19:59:42 GMT] [info] [<0.5627.21>] 127.0.0.1 - - GET /logpro_db/_design/fetch/_view/robots_by_id/?stale=%22update_after%22 400

Adding URL encoded quotes to a valid string returns:

{"error":"query_parse_error","reason":"Invalid value for `stale`."}

Other query params that take strings handle quotes fine (e.g. key=).

First noted through tornado-couchdb (Python client) which automatically produces quoted strings for parameters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)