couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1516) "formats" is ignored inside arrays in URL rewriting
Date Tue, 02 Jul 2013 00:25:20 GMT

     [ 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

Mime
View raw message