You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Aurélien Bénel (JIRA)" <ji...@apache.org> on 2010/06/05 16:19:55 UTC
[jira] Created: (COUCHDB-787) Rewrite handler not rewriting query
string parameters
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.
[jira] Commented: (COUCHDB-787) Rewrite handler not rewriting query
string parameters
Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875961#action_12875961 ]
Benoit Chesneau commented on COUCHDB-787:
-----------------------------------------
fixed in last trunk. Thanks :)
> 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
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> 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.
[jira] Closed: (COUCHDB-787) Rewrite handler not rewriting query
string parameters
Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Chesneau closed COUCHDB-787.
-----------------------------------
Assignee: Benoit Chesneau
Fix Version/s: 0.12
Resolution: Fixed
> 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
> Assignee: Benoit Chesneau
> Priority: Minor
> Fix For: 0.12
>
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> 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.