[
https://issues.apache.org/jira/browse/COUCHDB-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597262#comment-14597262
]
ASF GitHub Bot commented on COUCHDB-2722:
-----------------------------------------
Github user supertinou commented on the pull request:
https://github.com/apache/couchdb/pull/324#issuecomment-114378777
Thank you @robertkowalski.
As we are sadly not able to see the tests running with the fix I think I am
going to make a new pull request only for testing purpose in which I will keep
these tests and replace the master branch of couch and chttpd by the fixed
branches COUCHDB-2722
https://github.com/apache/couchdb/blob/master/rebar.config.script#L25-26
What do you think about it?
*NB : And maybe no need to change the chttpd branch as the tests are only
run against the old backdoor ports which are served by apache/couchdb-couch.*
Thanks again @robertkowalski
> The keys from the rewrited query params of a view should be blank when not
> specified in the URL
> -----------------------------------------------------------------------------------------------
>
> Key: COUCHDB-2722
> URL: https://issues.apache.org/jira/browse/COUCHDB-2722
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: HTTP Interface
> Affects Versions: 1.5.1, 1.6.0, 1.6.1
> Reporter: Martin Lagrange
> Priority: Minor
>
> When we rewrite the query params of a view as in the following example :
>
> {code:title=Design document test|borderStyle=solid}
> {
> _id:"_design/test",
> views : {
> rewriteKeyView: {
> // ...
> }
> },
> rewrites: [
> {
> "from": "renamedRewriteKeyView",
> "to": "_view/rewriteKeyView",
> "query": {
> "startkey": [
> ":by"
> ],
> "endkey": [
> ":by",
> {}
> ]
> }
> }
> ]
> }
> {code}
> specifying the param *by* as the main component of startkey and endkey
> When we access the renamed view "renamedRewriteKeyView", without specifying
> the by param in the URI like :
> {code}GET dbName/_design/test/renamedRewriteKeyView{code}
> the internal call should be :
> {code}rewriteKeyView?startkey=[""]&endkey=["",{}]{code}
> instead of : {code}rewriteKeyView?startkey=[":by"]&endkey=[":by",{}]{code}
> As you can see, when a key is not specified in the URI, it the value of this
> key will be kept as its name. Quite annoying in some cases.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)