couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lovasoa (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1516) "formats" is ignored inside arrays in URL rewriting
Date Fri, 27 Jul 2012 14:28:33 GMT
Lovasoa created COUCHDB-1516:

             Summary: "formats" is ignored inside arrays in URL rewriting
                 Key: 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"

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",
(it adds quotes around "42").

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message