Lovasoa created COUCHDB-1516:
--------------------------------
Summary: "formats" is ignored inside arrays in URL rewriting
Key: COUCHDB-1516
URL: https://issues.apache.org/jira/browse/COUCHDB-1516
Project: CouchDB
Issue Type: Bug
Components: Database Core
Affects Versions: 1.2
Reporter: Lovasoa
I have the following rewrite rule :
{
"from": "/data-update/:pool/:lastvisit",
"to": "/_list/prettyJSON/questions-by-date",
"query" : {
"startkey" : [":pool", {}],
"endkey" : [":pool", ":lastvisit"],
"descending" : "true"
},
"formats":{"descending":"bool","lastvisit":"int"}
}
My questions-by-date view emits key of the type [<str>, <int>].
The rewriter redirects /data-update/pool0/42 to
/_list/prettyJSON/questions-by-date?descending=true&startkey=["pool0",
{}]&endkey=["pool0", "42"]
instead of
/_list/prettyJSON/questions-by-date?descending=true&startkey=["pool0",
{}]&endkey=["pool0", 42]
(it adds quotes around "42").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira