[
https://issues.apache.org/jira/browse/COUCHDB-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010955#comment-14010955
]
ASF subversion and git services commented on COUCHDB-2249:
----------------------------------------------------------
Commit 9fb9b4b799daea53e02a4e8ff7dee03d0ec0608c in couchdb's branch
refs/heads/master from [~wilhol]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=9fb9b4b ]
Fauxton: Fix QueryParams
Ensure we clone the parameters to Documents.QueryParams.parse and
Documents.QueryParams.stringify. These functions should return new data
structures rather than modifying the input in-place.
Do not use the parsed query object for url generation. Instead, use the
stringified representation. Fixes COUCHDB-2249.
> Fauxton generates incorrect parameters when complex keys are specified
> ----------------------------------------------------------------------
>
> Key: COUCHDB-2249
> URL: https://issues.apache.org/jira/browse/COUCHDB-2249
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Fauxton
> Reporter: Will Holley
>
> Fauxton is not stringifying user-defined query parameters correctly (added in
> the "Query Options" panel). This results in a query parameter being generated
> for each component of the complex key.
> For example, specifying a startkey of {noformat}["a","b"]{noformat} generates
> the URL
> {noformat}
> ?startkey[]=a&startkey[]=b
> {noformat}
> instead of:
> {noformat}
> ?startkey=["a","b"]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)