You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Eric Drechsel (JIRA)" <ji...@apache.org> on 2014/01/17 19:28:19 UTC

[jira] [Created] (COUCHDB-2031) Paths ending in '/' rewrite query string params incorrectly

Eric Drechsel created COUCHDB-2031:
--------------------------------------

             Summary: Paths ending in '/' rewrite query string params incorrectly
                 Key: COUCHDB-2031
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2031
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
            Reporter: Eric Drechsel


Problem is discussed in this [SO thread|http://stackoverflow.com/questions/5059499/access-couch-db-database-url-through-rewritten-url-with-query-parameters].

To summarize, with

{code:title=rewrites.js}
[ { "from": "/dbname/*", "to: ../../*" },
  { "from": "/*", "to: *" } ]
{code}

/dbname/?foo=bar doesn't work; it rewrites to /dbname/_design/..?foo=bar instead.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)