Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-740

Fix Erlang view server when calling a filter function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11
    • 0.11.1
    • None
    • None

    Description

      Reported to the dev mailing list by Ivan Bodunov:

      "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

      1. 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.
      "

      patch attached with test

      Attachments

        Activity

          People

            Unassigned Unassigned
            fdmanana Filipe David Borba Manana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: