couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: rewrites with * bug?
Date Sat, 26 Nov 2011 10:12:03 GMT
On Sat, Nov 26, 2011 at 6:51 AM, Michael Bykov <m.bykov@gmail.com> wrote:

> 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
>
>
>
Looks like a bug indeed. Can you open a ticket about this issue? I will
take care  about that during the we.

benoit

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