You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Francis Chong (JIRA)" <ji...@apache.org> on 2011/05/11 12:00:47 UTC

[jira] [Created] (COUCHDB-1159) Rewrite Handler do not work together with source URL having extension

Rewrite Handler do not work together with source URL having extension
---------------------------------------------------------------------

                 Key: COUCHDB-1159
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1159
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 1.0.2
         Environment: 1.0.2
            Reporter: Francis Chong


URL rewrite work well for URL with path, such as ...

[
  {
      "from": ":a/:b/:c",
      "to": "_view/test",
      "method": "GET",
      "query": {
        "key": [":a", ":b", ":c"]
      }
  }
]

However it cannot handle URL with extension: 

[
  {
      "from": ":a/:b/:c.json",
      "to": "_view/test",
      "method": "GET",
      "query": {
        "key": [":a", ":b", ":c"]
      }
  }
]

It tries to rewrite ":c.json" instead of ":c", and it seems there are no workaround to use URL with extension.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira