couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bykov <m.by...@gmail.com>
Subject rewrites with * bug?
Date Sat, 26 Nov 2011 05:51:09 GMT
Hi,

please help me solve a problem:

I have URLs like Augustine/Confessiones/Book-5, URLs could have
arbitrary depth, so any number of slashes.

rewrites:

  {
    "from":"/start/*",
    "to":"_view/by_book/",
    "method":"GET",
    "query":{"key":"*"}
  },

But in resulted key I got only first token! It looks like a bug, if I
am not completely mistaken:

 ...

        {"x-couchdb-vhost-path","/start/Augustine/Confessiones/Book-5"},
        {'X-Forwarded-For',"127.0.0.1"},
        {"X-Insight","activate"},
        {"X-Real-Ip","127.0.0.1"}]
[debug] [<0.224.0>] OAuth Params: [{"key","\"Augustine\""}]
[info] [<0.224.0>] 127.0.0.1 - - 'GET'
/diglossa/_design/diglossa/_view/by_book?key=%22Augustine%22 200

...

It should replace * with complete path, isn't it?

In insecure mode I got the same result.

What can be done to solve the problem?

Thank you


-- 
лю.

http://diglossa.ru
xmpp://m.bykov@jabber.ru

Mime
View raw message