You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Alexander Shorin (JIRA)" <ji...@apache.org> on 2013/07/02 02:25:20 UTC
[jira] [Updated] (COUCHDB-1516) "formats" is ignored inside arrays
in URL rewriting
[ https://issues.apache.org/jira/browse/COUCHDB-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Shorin updated COUCHDB-1516:
--------------------------------------
Component/s: (was: Database Core)
HTTP Interface
> "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: HTTP Interface
> Affects Versions: 1.2
> Reporter: Lovasoa
> Labels: rewrite, rewriter, url
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira