You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Michael Bykov <m....@gmail.com> on 2011/11/26 06:51:09 UTC
rewrites with * bug?
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
Re: rewrites with * bug?
Posted by Benoit Chesneau <bc...@gmail.com>.
On Sat, Nov 26, 2011 at 11:42 AM, Michael Bykov <m....@gmail.com> wrote:
> 2011/11/26 Benoit Chesneau <bc...@gmail.com>:
> > On Sat, Nov 26, 2011 at 6:51 AM, Michael Bykov <m....@gmail.com>
> wrote:
> >>
> > Looks like a bug indeed. Can you open a ticket about this issue? I will
> > take care about that during the we.
> >
> > benoit
> >
>
>
> Benoit, thank you!
>
> look, please,
>
> https://issues.apache.org/jira/browse/COUCHDB-1348
>
> I marked it as Infrastructure bug, I am not shure if it correct
>
> --
> М.
>
> http://diglossa.ru
> xmpp://m.bykov@jabber.ru
>
Thanks. @rnewson has already fixed that. I will work on it asap this we :)
- benoît
Re: rewrites with * bug?
Posted by Michael Bykov <m....@gmail.com>.
2011/11/26 Benoit Chesneau <bc...@gmail.com>:
> On Sat, Nov 26, 2011 at 6:51 AM, Michael Bykov <m....@gmail.com> wrote:
>>
> Looks like a bug indeed. Can you open a ticket about this issue? I will
> take care about that during the we.
>
> benoit
>
Benoit, thank you!
look, please,
https://issues.apache.org/jira/browse/COUCHDB-1348
I marked it as Infrastructure bug, I am not shure if it correct
--
М.
http://diglossa.ru
xmpp://m.bykov@jabber.ru
Re: rewrites with * bug?
Posted by Benoit Chesneau <bc...@gmail.com>.
On Sat, Nov 26, 2011 at 6:51 AM, Michael Bykov <m....@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