incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Enable Erlang for views?
Date Mon, 19 Oct 2009 17:37:53 GMT
On Mon, Oct 19, 2009 at 12:40 PM, Zachary Zolton
<zachary.zolton@gmail.com> wrote:
> Guys,
>
> I noticed that the test suite creates a design document with an Erlang
> view, however I can't execute it from curl.
>
> $ curl http://localhost:5984/test_suite_db/_design/erlview/_view/simple_view
> {"error":"unknown_query_language","reason":"erlang"}
>
> Are we supposed to be able to map/reduce our docs in Erlang?
>
>
> Cheers,
>
> Zach
>
>
> PS. I'm using CouchDB 0.10 FWIW
>
> PPS. Yes, I found this thread http://is.gd/4r6oG but erlview doesn't
> look like it's been touched in quite a while...
>

Erlang views are disabled by default because they allow arbitrary code
execution in the server process. To enable them add a section to your
local.ini like:

[native_query_servers]
erlang = {couch_native_process, start_link, []}

HTH,
Paul Davis

Mime
View raw message