incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregor Martynus <gre...@martynus.net>
Subject Problem with / in _design doc _id & filters?
Date Thu, 21 Jun 2012 14:29:37 GMT
When I create a _design doc with a / in it, I'm not able to refer to its filter in the _changes
feed.

Example _design doc:
{
   "_id": "_design/a/b",
   "filters": {
       "test": "function(doc) { return true; };"
   }
}


_changes request:
GET http://localhost:5984/test/_changes?filter=a%2fb/test


returns a 400 with the body:
{
error: "bad_request",
reason: "filter parameter must be of the form `designname/filtername`"
}



Is this a bug? Or am I doing something wrong?
I test it without the / in the _design doc, it worked without a problem

-- 
Gregor Martynus


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message