couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Filters in Erlang broken
Date Fri, 16 Apr 2010 03:49:02 GMT
Someone refactored couch_native_process.erl and forgot to update the
design doc interaction thinger with random functions.

In other words, it expects an argument like {_, Func} but gets
["filters", "foo"] IIRC.

On Thu, Apr 15, 2010 at 8:18 PM, Ivan Bodunov <ivan.bodunov@gmail.com> wrote:
> Hi,
>
> After I wrote my filter in JavaScript I decided to rewrite it in Erlang and
> faced some problems.
> Even the simplest possible filter written in Erlang causes crashes in
> CouchDB.
>
> Filter is
>    "filters": { "foo": "fun({Doc},Req) -> true end." }
>
> Command to trigger the filter is
>    # curl -X GET http://localhost:5984/mytemp/_changes?filter=erl/foo
>
> Following link contains the crash report:
> http://friendpaste.com/6eFpPOtTaaSRiXEvaUEmrZ
>
> CouchDB 0.11 on Mac.
>
> Ivan
>

Mime
View raw message