couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Bénel (JIRA) <j...@apache.org>
Subject [jira] Created: (COUCHDB-787) Rewrite handler not rewriting query string parameters
Date Sat, 05 Jun 2010 14:19:55 GMT
Rewrite handler not rewriting query string parameters
-----------------------------------------------------

                 Key: COUCHDB-787
                 URL: https://issues.apache.org/jira/browse/COUCHDB-787
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 0.11
         Environment: Mac OS 10.6.3
            Reporter: Aurélien Bénel
            Priority: Minor


In order to implement the following rewrite rule:
custom/?parameter=FOO   ->   _list/aList/aView?startkey=["FOO"]&endkey=["FOO",{}]

it would make sense to write:
[{
  "from": "/custom/?parameter=:parameter",
  "to": "_list/aList/aView",
  "query": {
    "startkey": [":parameter"],
    "endkey": [":parameter",{}]
  }
}]

Note: I also tried:
 [{
  "from": "/custom",
  "to": "_list/aList/aView",
  "query": {
    "startkey": [":parameter"],
    "endkey": [":parameter",{}]
  }
}]

but it didn't work either (and would have offered a slightly different interface).


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message